2020-04-27 19:47:15 +00:00
|
|
|
name: Pull Request CI
|
|
|
|
on:
|
2020-08-08 21:01:45 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
- '!master'
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
workflow_dispatch:
|
2020-04-27 19:47:15 +00:00
|
|
|
jobs:
|
|
|
|
pull_request_ci:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-12-19 21:39:53 +00:00
|
|
|
- name: Set up Go
|
2021-11-22 20:34:56 +00:00
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: 1.17
|
|
|
|
id: go
|
|
|
|
|
|
|
|
- name: Check out code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2021-12-11 21:30:03 +00:00
|
|
|
- name: Run check
|
2021-12-19 21:39:53 +00:00
|
|
|
run: go run ./cmd/main.go --config=./.github/assets.config.yaml --script=checker
|
|
|
|
|
2021-12-27 09:39:11 +00:00
|
|
|
- name: Unit Test
|
|
|
|
run: make test
|
2021-12-19 21:39:53 +00:00
|
|
|
|
2021-12-27 09:39:11 +00:00
|
|
|
- name: Lint
|
|
|
|
run: make lint
|