-
Notifications
You must be signed in to change notification settings - Fork 24
38 lines (34 loc) · 796 Bytes
/
ci.yml
File metadata and controls
38 lines (34 loc) · 796 Bytes
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
name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache npm
uses: actions/cache@v3
with:
path: ~/.npm
key: "npm-cache"
- uses: actions/setup-go@v4
with:
go-version: "1.20"
cache-dependency-path: go.sum
- name: "make"
run: |
git config --global --add safe.directory /github/workspace
make -O -j fmt lint test
env:
COVERALLS_TOKEN: ${{ secrets.github_token }}
- name: Upload coverage.html
uses: actions/upload-artifact@v4
with:
name: coverage
path: ci/out/coverage.html