add third party apps #3168
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
env: | |
NODE_VERSION: 16.14 | |
jobs: | |
build: | |
name: π· Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
# Skip post-install scripts here, as a malicious | |
# script could steal NODE_AUTH_TOKEN. | |
- name: Install dependencies | |
run: npm ci --ignore-scripts | |
env: | |
CI: true | |
NODE_AUTH_TOKEN: ${{ secrets.CI_NPM_READ_ORG }} | |
- name: Building | |
run: npm run build | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.CI_NPM_READ_ORG }} | |
- name: Examples - es6 | |
run: cd examples/es6 && npm i && npm run build | |
- name: Examples - common | |
run: cd examples/commonjs && npm i | |
- name: Examples - Management CLI | |
run: cd examples/managementCli && npm i && npm run build | |
eslint: | |
name: πͺ₯ ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
# Skip post-install scripts here, as a malicious | |
# script could steal NODE_AUTH_TOKEN. | |
- name: Install dependencies | |
run: npm ci --ignore-scripts | |
env: | |
CI: true | |
NODE_AUTH_TOKEN: ${{ secrets.CI_NPM_READ_ORG }} | |
- run: npm run format-check | |
- run: npm run lint | |
gitleaks: | |
name: π Run Git leaks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
# Skip post-install scripts here, as a malicious | |
# script could steal NODE_AUTH_TOKEN. | |
- name: Install dependencies | |
run: npm ci --ignore-scripts | |
env: | |
CI: true | |
NODE_AUTH_TOKEN: ${{ secrets.CI_NPM_READ_ORG }} | |
- name: Gitleaks | |
run: npm run leaks | |
shell: bash | |
unit-test: | |
name: π Run Unit Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: [12, 14, 16, 18] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
# Skip post-install scripts here, as a malicious | |
# script could steal NODE_AUTH_TOKEN. | |
- name: Install dependencies | |
run: npm ci --ignore-scripts | |
env: | |
CI: true | |
NODE_AUTH_TOKEN: ${{ secrets.CI_NPM_READ_ORG }} | |
- name: Testing | |
run: npm test |