-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (33 loc) · 802 Bytes
/
tests.yml
File metadata and controls
40 lines (33 loc) · 802 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
39
40
name: test
on:
push:
workflow_call:
workflow_dispatch:
permissions:
contents: read
pull-requests: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Monorepo
uses: actions/checkout@v4
- name: Install devbox
uses: jetify-com/devbox-install-action@v0.13.0
with:
enable-cache: true
- name: Mount golang cache
uses: actions/cache@v4
with:
path: |
~/.cache/golangci-lint
~/.cache/go-build
~/go/pkg
key: ${{ runner.os }}-tests-${{ hashFiles('**/*.sum') }}
restore-keys: |
${{ runner.os }}-tests
${{ runner.os }}
- name: Build
run: devbox run build
- name: Test
run: devbox run test