code/.github/workflows/ci.yml

43 lines
811 B
YAML
Raw Normal View History

2021-06-21 05:07:52 +00:00
name: Build
on:
push:
2021-10-17 18:41:15 +00:00
branches:
- "*"
2021-06-21 05:07:52 +00:00
pull_request:
2021-10-17 18:41:15 +00:00
branches:
- "*"
2021-06-21 05:07:52 +00:00
jobs:
build:
name: Build
runs-on: ubuntu-latest
2021-10-17 18:41:15 +00:00
timeout-minutes: 10
2021-06-21 05:07:52 +00:00
strategy:
fail-fast: false
steps:
- name: Checkout code
2024-02-11 12:58:03 +00:00
uses: actions/checkout@v4
2021-06-21 05:07:52 +00:00
- name: Setup nodejs
2024-02-11 12:58:03 +00:00
uses: actions/setup-node@v4
2021-06-21 05:07:52 +00:00
with:
2021-10-17 18:41:15 +00:00
node-version: 16.x
2021-06-21 05:07:52 +00:00
- name: Installling dependencies
2021-10-17 18:41:15 +00:00
run: npm install
2021-06-21 05:07:52 +00:00
- name: Lint
2021-10-17 18:41:15 +00:00
run: npx eslint --ext .ts,.tsx,.js,.jsx --ignore-path .gitignore .
2021-06-21 05:07:52 +00:00
- name: Build
2021-10-17 18:41:15 +00:00
run: npm run generate
2021-06-21 05:07:52 +00:00
- name: Initialize CodeQL
2024-02-11 12:58:03 +00:00
uses: github/codeql-action/init@v2
2021-06-21 05:07:52 +00:00
with:
languages: javascript
- name: Perform CodeQL Analysis
2024-02-11 12:58:03 +00:00
uses: github/codeql-action/analyze@v2