Repository navigation
65 lines (52 loc) · 1.4 KB
/
Copy pathtest.yml
File metadata and controls
65 lines (52 loc) · 1.4 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install packages
run: yarn
- name: Build packages
run: yarn lerna run build
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install packages
run: yarn
- name: Build packages
run: yarn lerna run build && yarn lerna link
- name: Run unit tests
run: yarn lerna run test
e2e-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to GCR
uses: docker/login-action@v2
with:
registry: gcr.io
username: _json_key
password: ${{ secrets.PRENET_GCR_KEY }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build e2e test
uses: docker/build-push-action@v4
with:
context: .
file: ./.github/docker/e2e/Dockerfile
push: false
outputs: type=docker
cache-from: type=gha
cache-to: type=gha,mode=max
tags: polybase-e2e-polybase-ts-tests
- name: Run e2e tests
run: |
docker run polybase-e2e-polybase-ts-tests