-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.07 KB
/
test_suite.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
name: test_suite
on:
push:
paths-ignore:
- 'docs/**'
branches:
- main
pull_request:
schedule:
- cron: '0 3 * * 1'
jobs:
test_suite:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
# needed to lint commit messages
fetch-depth: 0
- uses: dorny/paths-filter@v2
id: files_changed
with:
filters: |
toolbox:
- toolbox/**
- if: steps.files_changed.outputs.toolbox != 'true'
name: Pull toolbox container image
run: |
TAG=main
podman pull "${{ secrets.TOOLBOX_REGISTRY_IMAGE }}:$TAG"
podman tag "${{ secrets.TOOLBOX_REGISTRY_IMAGE }}:$TAG" localhost/waketimed_toolbox_builder:latest
- if: steps.files_changed.outputs.toolbox == 'true'
name: Build toolbox container image
run: make toolbox-build
- name: Run lints
run: ./tbx make lint
- name: Run unit tests
run: ./tbx make test-unit
- name: Run integration tests
run: ./tbx make test-int