| 1 |
name: Tests |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: |
| 6 |
- main |
| 7 |
pull_request: |
| 8 |
types: [opened, synchronize] |
| 9 |
|
| 10 |
permissions: {} |
| 11 |
|
| 12 |
jobs: |
| 13 |
unit-tests: |
| 14 |
if: github.repository == 'mixmark-io/domino' |
| 15 |
runs-on: ubuntu-latest |
| 16 |
steps: |
| 17 |
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c |
| 18 |
with: |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
persist-credentials: false |
| 23 |
submodules: true |
| 24 |
- uses: actions/cache@v3 |
| 25 |
with: |
| 26 |
path: /.yarn/cache |
| 27 |
key: v1-${{hashFiles('yarn.lock')}} |
| 28 |
- run: yarn install --immutable |
| 29 |
- run: yarn mocha -R spec |