forked from convox/convox
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.12 KB
/
test.yml
File metadata and controls
40 lines (40 loc) · 1.12 KB
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
name: test
on: pull_request
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v3
- name: Install libudev-dev
run: sudo apt-get update && sudo apt-get install -y libudev-dev
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: build
run: docker buildx build --platform linux/amd64,linux/arm64 .
test:
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v3
- name: Install libudev-dev
run: sudo apt-get update && sudo apt-get install -y libudev-dev
- name: test
run: make test
tooling:
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v3
- name: golang-1.23
uses: actions/setup-go@v3
with:
go-version: '1.23'
- name: Install libudev-dev
run: sudo apt-get update && sudo apt-get install -y libudev-dev
- name: tools
run: make tools
- name: cli
run: make -C cmd/convox build