mirror of
https://github.com/mgechev/revive.git
synced 2025-01-08 03:13:27 +02:00
29 lines
612 B
YAML
29 lines
612 B
YAML
name: Test
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
types: [opened, edited, synchronize, reopened]
|
|
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
go-version:
|
|
- 1.17.x
|
|
- 1.18.x
|
|
- 1.19.x
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3.0.2
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3.2.0
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
cache: true
|
|
cache-dependency-path: '**/go.sum'
|
|
- name: Run tests
|
|
run: go test -race ./...
|