-
Notifications
You must be signed in to change notification settings - Fork 27
30 lines (28 loc) · 999 Bytes
/
node_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
name: node_test
on: [workflow_call]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Create .npmrc
run: |
if [ "${{ secrets.NPM_GH_TOKEN }}" = "" ]; then
echo "Using GITHUB_TOKEN"
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > .npmrc
echo "@dekart-xyz:registry=https://npm.pkg.github.com" >> .npmrc
else
echo "Using NPM_GH_TOKEN"
echo "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_GH_TOKEN }}" > .npmrc
echo "@dekart-xyz:registry=https://npm.pkg.github.com" >> .npmrc
fi
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Client unit test
uses: docker/build-push-action@v2
with:
context: .
target: nodetest