Add support for templated & non-templated location WA messages #435
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
unittest: | |
strategy: | |
matrix: | |
go-version: ['1.18', '1.19', '1.20', '1.21.0', '1.22.0'] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Run unit tests | |
run: go test -v -race -cover | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Run golangci-lint | |
uses: golangci/golangci-lint-action@v2 | |
with: | |
version: latest | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.17' | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Run unit tests with coverage | |
run: go test -v -race -coverprofile=coverage.txt | |
- name: Codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
file: coverage.txt | |
flags: unittests | |
verbose: true | |
fail_ci_if_error: false |