Skip to content

Merge pull request #12 from saturncloud/bhperry/fix-role-name #41

Merge pull request #12 from saturncloud/bhperry/fix-role-name

Merge pull request #12 from saturncloud/bhperry/fix-role-name #41

Workflow file for this run

name: continuous integration
on: push
jobs:
cancel-previous:
name: Cancel previous runs
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
lint:
name: Go lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.61.0
args: --verbose
test:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Run tests
run: make test
runs-complete:
name: Lint and test
needs: [lint, test]
if: always()
runs-on: ubuntu-latest
steps:
- if: ${{ needs['lint'].result != 'success' || needs['test'].result != 'success' }}
name: Fail
run: exit 1
- name: Tests complete
run: echo "Tests complete"