-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (32 loc) · 915 Bytes
/
common-ci.yml
File metadata and controls
38 lines (32 loc) · 915 Bytes
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
name: Common CI Workflow
on:
workflow_call:
inputs:
upload-to-code-cov:
required: true
type: boolean
jobs:
ci-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Install Packages
run: npm install
- name: Run ESLint
run: npm run eslint
- name: Run Tests
env:
SA_WITHOUT_CONTEXT: ${{ secrets.SA_WITHOUT_CONTEXT }}
SIGNED_TOKEN_SA: ${{ secrets.SIGNED_TOKEN_SA }}
run: npm run test
- name: Upload Code Coverage To Codecov
if: ${{ inputs.upload-to-code-cov == 'true' }}
uses: codecov/codecov-action@v2.1.0
with:
token: ${{ secrets.CODECOV_REPO_UPLOAD_TOKEN }}
files: coverage/lcov.info
name: codecov-skyflow-node
verbose: true