-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (40 loc) · 1.42 KB
/
hydra-test.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
name: test-hydra
on:
push:
branches: [ master, develop, multitenant ]
pull_request_target:
branches: [ master, develop, multitenant ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- if: ${{ github.event_name == 'push' }}
uses: actions/checkout@v2
with:
submodules: recursive
- if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v2
- if: ${{ github.event_name == 'pull_request_target' }}
run: USER=${GITHUB_ACTOR} TOKEN=${{ secrets.GITHUB_TOKEN }} bash .github/scripts/only_collaborators.sh
- if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v2
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
submodules: recursive
- uses: actions/setup-node@v1
with:
node-version: '12'
check-latest: true
- uses: bahmutov/npm-install@v1
- name: "Build"
uses: docker://josejulio/hypha-builder:release_1.8.x
with:
args: " -j2 VERBOSE=1 "
env:
CODE: "/github/workspace/"
PATCH_WASM_LD: "1"
- run: mkdir -p ~/.hydra && echo $HYDRA_AUTH > ~/.hydra/auth.json && ls -l ~/.hydra
env:
HYDRA_AUTH: ${{ secrets.HYDRA_AUTH }}
- run: yarn test --forceExit --maxWorkers=4 --detectOpenHandles