-
Notifications
You must be signed in to change notification settings - Fork 72
35 lines (32 loc) · 766 Bytes
/
go.yml
File metadata and controls
35 lines (32 loc) · 766 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
name: Go
on:
push:
branches: [ $default-branch, "develop" ]
pull_request:
branches: [ $default-branch, "develop" ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Generate SSH key
run: ssh-keygen -f ~/.ssh/id_rsa -P ""
- name: Test
run: make test
build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Set dependencies
run: sudo apt update && sudo apt install musl-tools
- name: Build
run: make build