Skip to content

fix: check v prefixed tag first #816

fix: check v prefixed tag first

fix: check v prefixed tag first #816

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: 'recursive'
token: ${{ secrets.RELEEN_GITHUB_TOKEN }}
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
check-latest: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
- name: Ensure Generate Succeeds and Does Not Make Changes
run: |
go generate ./...
git status --porcelain # When this fails, things have changed.
- name: Build
run: go build -v ./...
- name: Setup SSH
uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.RELENG_CI_BOT_KEY }}
- name: Unit Tests
run: go test --covermode=atomic --coverprofile=kiln-${{ github.sha }}-unit-test-code-coverage.out ./...
- name: Archive Unit Test Code Coverage Output
uses: actions/upload-artifact@v3
with:
name: Unit Test Code Coverage Output
path: kiln-${{ github.sha }}-unit-test-code-coverage.out
- name: Acceptance Tests
env:
CGO_ENABLED: '0'
RELEEN_GITHUB_TOKEN: ${{ secrets.RELEEN_GITHUB_TOKEN }}
run: |
set -euo pipefail
export GITHUB_TOKEN="${RELEEN_GITHUB_TOKEN}"
set -x
go test --run '(using_kiln|baking_a_tile|generating_release_notes|updating_)' \
-v --timeout 15m --tags acceptance \
github.com/pivotal-cf/kiln/internal/acceptance/workflows