-
Notifications
You must be signed in to change notification settings - Fork 19
60 lines (49 loc) · 1.47 KB
/
CI.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Pre-Push Actions
on:
push:
branches:
- main
pull_request:
env:
GOUDA_SERVICE_URL: ${{ secrets.GOUDA_SERVICE_URL }}
jobs:
lint-and-test:
name: lint-and-test
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
with:
persist-credentials: true
token: ${{ secrets.GH_TOKEN }}
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: |
npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_AUTH_TOKEN }}" \
&& yarn install --frozen-lockfile
- name: Run linters
run: yarn lint
- name: Run Build
run: yarn build
- name: Run swagger validation
uses: readmeio/rdme@51a80867c45de15e2b41af0c4bd5bbc61b932804
with:
rdme: openapi:validate swagger.json
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Create Env File
run: |
touch .env
echo "LABS_COSIGNER=0x0000000000000000000000000000000000000000" > .env
echo "LABS_PRIORITY_COSIGNER=0x0000000000000000000000000000000000000000" >> .env
echo "KMS_KEY_ID=testtest" >> .env
cat .env
- name: Check test coverage
run: yarn coverage