-
Notifications
You must be signed in to change notification settings - Fork 18
57 lines (48 loc) · 1.24 KB
/
unit-tests.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
46
47
48
49
50
51
52
53
54
55
56
57
name: unit-tests
on:
push:
branches:
- main
paths-ignore:
- '**.md'
- 'server/**'
- 'tests/functional/**'
pull_request:
paths-ignore:
- '**.md'
- 'server/**'
- 'tests/functional/**'
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
unit-tests:
strategy:
fail-fast: false
matrix:
include:
- os: linux
runs-on: ubuntu-22.04
arch: x86_64
name: "${{ matrix.os }}-${{ matrix.arch }}"
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # 4.1.6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # 3.3.0
with:
install: true
- name: Login to GitHub Container Registry
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # 3.2.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}
- name: Bake images
run: |
docker buildx bake chalk --load
- name: Run unit tests
run: |
make unit-tests