-
-
Notifications
You must be signed in to change notification settings - Fork 17
46 lines (38 loc) · 1.26 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
name: Run OIBus tests
on:
pull_request:
types: [ opened, synchronize, ready_for_review ]
paths-ignore: [ "documentation/**", "build/**", "data-folder/**", "**.md" ]
concurrency:
# New commit on branch cancels running workflows of the same branch
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest, ubuntu-latest ]
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18.15
- name: Setup shared environment
uses: ./.github/actions/setup_shared_environment
with:
cache_version: ${{ secrets.GH_ACTIONS_CACHE_KEY }}
- name: Setup backend environment
uses: ./.github/actions/setup_backend_environment
with:
cache_version: ${{ secrets.GH_ACTIONS_CACHE_KEY }}
- name: Setup frontend environment
uses: ./.github/actions/setup_frontend_environment
with:
cache_version: ${{ secrets.GH_ACTIONS_CACHE_KEY }}
- name: Run unit tests
uses: ./.github/actions/unit_tests