frostfs-http-gw/.forgejo/workflows/tests.yml

34 lines
670 B
YAML
Raw Normal View History

on: [pull_request]
2021-04-30 16:08:57 +00:00
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
2021-04-30 16:08:57 +00:00
steps:
- uses: actions/checkout@v3
2021-04-30 16:08:57 +00:00
- name: golangci-lint
uses: https://github.com/golangci/golangci-lint-action@v2
2021-04-30 16:08:57 +00:00
with:
version: latest
2021-04-30 16:08:57 +00:00
tests:
name: Tests
runs-on: ubuntu-latest
2021-04-30 16:08:57 +00:00
strategy:
matrix:
go_versions: [ '1.19', '1.20' ]
2021-04-30 16:08:57 +00:00
fail-fast: false
steps:
- uses: actions/checkout@v3
2021-04-30 16:08:57 +00:00
- name: Set up Go
uses: actions/setup-go@v3
2021-04-30 16:08:57 +00:00
with:
go-version: '${{ matrix.go_versions }}'
- name: Update Go modules
run: make dep
- name: Run tests
run: make test