-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (65 loc) · 2.01 KB
/
ubuntu.yaml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Build Devbox
on: [push, pull_request]
jobs:
conventional_commit_compliance:
name: "Conventional Commit Compliance Checks"
runs-on: ubuntu-latest
steps:
- name: Checkout Devbox
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check conventional commit compliance
uses: cocogitto/cocogitto-action@v3
build:
name: "Build Devbox"
runs-on: ubuntu-latest
steps:
- name: Get required pkgs
run: |
sudo apt update
sudo apt-get install golang make musl musl-tools -y
sudo snap install zig --classic --edge
- name: Checkout Devbox
uses: actions/checkout@v3
- name: Build Devbox zig_static
run: |
make tidy
make clean
make zig_static
- name: Build Devbox musl_static
run: |
make clean
make musl_static
- name: Build Devbox
run: |
make clean
make build
format_checks:
name: "Formatting Checks"
runs-on: ubuntu-latest
steps:
- name: Get required pkgs
run: |
sudo apt update
sudo apt-get install golang make -y
- name: Checkout Devbox
uses: actions/checkout@v3
- name: Formatting Check
run: |
make tidy
make check
tests:
name: "Test cases"
runs-on: ubuntu-latest
steps:
- name: Get required pkgs
run: |
sudo apt update
sudo apt-get install golang make -y
- name: Checkout Devbox
uses: actions/checkout@v3
- name: Tests
run: |
make tidy
make test