Skip to content

Drop vendored safedialer package #79

Drop vendored safedialer package

Drop vendored safedialer package #79

Workflow file for this run

name: test
on:
push:
branches: [main] # pushes TO main
pull_request:
branches: [main] # pull requests AGAINST main
# cancel CI runs when a new commit is pushed to any branch except main
concurrency:
group: "test-${{ github.ref }}"
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
test:
name: test
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- '1.20'
- '1.19'
- '1.18'
steps:
- name: setup
uses: actions/setup-go@v2
with:
go-version: ${{matrix.go-version}}
- name: checkout
uses: actions/checkout@v2
- id: go-cache-paths
run: |
echo "::set-output name=go-build::$(go env GOCACHE)"
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
- name: cache build
uses: actions/cache@v2
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-go-${{ matrix.go-version }}-build-${{ hashFiles('**/go.sum') }}
- name: cache mod
uses: actions/cache@v2
with:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
key: ${{ runner.os }}-go-${{ matrix.go-version }}-mod-${{ hashFiles('**/go.sum') }}
- name: test
run: make testci
- name: report code coverage
uses: codecov/codecov-action@v1
with:
file: ./coverage.out
if: ${{ matrix.go-version == '1.20' }}