-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (35 loc) · 966 Bytes
/
pr.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
45
name: pull-request
on:
pull_request:
branches:
- master
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install golang
uses: actions/setup-go@v5
with:
go-version: '1.20.5'
- name: Run unit tests
run: go test -v ./...
- name: Install dependencies
run: .github/workflows/helpers/install-deps.sh
- name: Build web
run: ./web/app/make.sh all
- name: Build linux binary
run: .github/workflows/helpers/build-bin.sh build/ linux-amd64
- name: Run integration tests
run: .github/workflows/helpers/run-tests.sh build/notesium-linux-amd64
- name: Print version
run: build/notesium-linux-amd64 version --verbose
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: build/