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

41 lines
771 B
YAML
Raw Permalink 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: Set up Go
uses: actions/setup-go@v3
2021-04-30 16:08:57 +00:00
with:
go-version: '1.21'
cache: true
- name: Install linters
run: make lint-install
- name: Run linters
run: make lint
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.20', '1.21' ]
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