-
Notifications
You must be signed in to change notification settings - Fork 44
38 lines (36 loc) · 1.21 KB
/
hydra-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
name: hydra-unit-tests
on: [pull_request]
jobs:
run_unit_tests:
name: run Hydra unit tests
if: "!contains(github.event.head_commit.message, 'test skip')"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: lint
run: |
yarn
yarn workspaces run lint
- name: Docker login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: run unit tests
# We use `sudo rm -rf /usr/share/dotnet` as a workaround to free up some space
# (see hydra-e2e-tests.yml for explaination)
run: |
sudo rm -rf /usr/share/dotnet
yarn
yarn workspace @joystream/hydra-cli test
yarn workspace @joystream/hydra-typegen test
yarn workspace @joystream/hydra-common build
yarn workspace @joystream/hydra-db-utils build
yarn workspace @joystream/hydra-processor install
yarn workspace @joystream/hydra-processor test