s3manager-web/.github/workflows/main.yml

32 lines
539 B
YAML
Raw Normal View History

2020-05-04 15:35:59 +02:00
name: Lint and Test
2020-12-03 10:28:05 +01:00
on:
push:
branches: [$default-branch]
pull_request:
branches: [$default-branch]
2020-05-04 15:35:59 +02:00
jobs:
test:
2020-12-03 10:28:05 +01:00
name: Test
2020-05-04 15:35:59 +02:00
runs-on: ubuntu-latest
steps:
2020-12-03 10:28:05 +01:00
- name: Set up Go
2020-05-04 15:35:59 +02:00
uses: actions/setup-go@v2
with:
2020-12-03 10:28:05 +01:00
go-version: ^1.15
- name: Checkout code
uses: actions/checkout@v2
2020-05-04 15:35:59 +02:00
- name: Lint
2020-07-28 09:19:10 +02:00
uses: golangci/golangci-lint-action@v2
with:
2020-07-28 09:19:10 +02:00
version: latest
2020-12-03 10:28:05 +01:00
2020-05-04 15:35:59 +02:00
- name: Test
run: make test
2020-12-03 10:28:05 +01:00
2020-05-04 15:35:59 +02:00
- name: Build
run: make build