forked from TrueCloudLab/lego
36 lines
No EOL
682 B
YAML
36 lines
No EOL
682 B
YAML
name: Tests and linters
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: '1.19'
|
|
cache: true
|
|
|
|
- name: golangci-lint
|
|
uses: https://github.com/golangci/golangci-lint-action@v3
|
|
with:
|
|
version: latest
|
|
|
|
tests:
|
|
name: Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: '1.19'
|
|
cache: true
|
|
|
|
- name: Run tests
|
|
run: make test
|
|
|