-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (44 loc) · 1.64 KB
/
main.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
name: Continuous Integration
on:
push:
branches: [dev]
pull_request:
branches: [dev]
jobs:
test-build-lint:
runs-on: ubuntu-latest
env:
VITE_API_URL_DEV: 'https://api-obzh-dev.azurewebsites.net'
VITE_API_URL_TEST: 'https://api-obzh-test.azurewebsites.net'
VITE_API_URL_ACC: 'https://api-obzh-acc.azurewebsites.net'
VITE_API_URL_PROD: 'https://api-obzh.azurewebsites.net'
VITE_GEOSERVER_API_URL: https://geo-omgevingsbeleid-test.azurewebsites.net
VITE_API_ENV: dev
VITE_KEY_API_ACCESS_TOKEN: OB_access_token
VITE_KEY_IDENTIFIER: OB_identifier
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: yarn --immutable
- name: Run the tests and generate coverage report
run: yarn test:coverage
- name: Build
run: yarn build
- name: Upload Code Coverage
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}