Skip to content

Merge pull request #13 from upfluence/xg/DRA-2152/updateci #54

Merge pull request #13 from upfluence/xg/DRA-2152/updateci

Merge pull request #13 from upfluence/xg/DRA-2152/updateci #54

Workflow file for this run

name: ci
on:
push:
branches:
- 'master'
pull_request:
jobs:
test:
name: Run Tests
runs-on: ubuntu-20.04
strategy:
matrix:
go: [ '1.19.x', '1.18.x', '1.17.x' ]
steps:
- name: Install Go ${{ matrix.go }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
cache: false
- name: Checkout
uses: actions/checkout@v4
- name: Cache Modules
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-v1-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run tests
run: go test -p 1 -v ./...
release:
needs: test
if: github.ref == 'refs/heads/master'
uses: upfluence/actions/.github/workflows/lib-any-release.yml@master
secrets: inherit