-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1014 Bytes
/
go.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build showcase
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configure git for private modules
env:
TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: git config --global url."https://chrisdinn:${TOKEN}@github.com".insteadOf "https://github.com"
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "1.20"
- name: Format
run: if [ "$(go fmt ./... | wc -l)" -gt 0 ]; then exit 1; fi
- name: Test
run: go test -v ./...
- name: Lint
run: go run . lint
- name: Check prettier
run: npm run format
- name: Report Status to Slack
if: always()
uses: ravsamhq/notify-slack-action@master
with:
status: ${{ job.status }}
notify_when: "failure"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_SHIPPER_WEBHOOK }}