-
Notifications
You must be signed in to change notification settings - Fork 27
48 lines (39 loc) · 1.29 KB
/
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
name: Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/init
- name: Run tests
run: npm test
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare-build
- name: Restore third party artifacts
id: cache-thirdparty-restore
uses: actions/cache/restore@v4
with:
path: ./thirdparty/bergamot/build
key: ${{ runner.os }}-thirdparty-${{ hashFiles('./thirdparty/bergamot/**') }}
- name: Compile third party artifacts with docker
if: steps.cache-thirdparty-restore.outputs.cache-hit != 'true'
shell: bash
run: make buildThirdparty
- name: Save third party artifacts
id: cache-thirdparty-save
uses: actions/cache/save@v4
with:
path: ./thirdparty/bergamot/build
key: ${{ steps.cache-thirdparty-restore.outputs.cache-primary-key }}
- name: Build some targets for test
run: make prepare buildFirefox buildFirefoxStandalone packAll lintBuilds
- name: Archive build files
uses: actions/upload-artifact@v4
id: upload-build-artifacts
with:
name: build-files
path: build