-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
177520f
commit f82d4b5
Showing
10 changed files
with
373 additions
and
374 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,164 +1,164 @@ | ||
name: main | ||
|
||
on: | ||
push: | ||
branches: [main, alpha, beta, next] | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
push: | ||
branches: [main, alpha, beta, next] | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
qa-format-and-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: "yarn" | ||
- name: Install dependencies | ||
run: yarn install --immutable | ||
- name: Lint markdown | ||
run: yarn markdownlint:lint | ||
- name: Lint package.json | ||
run: yarn packagejson:lint | ||
- name: Check package.json library usage | ||
run: yarn packagejson:check | ||
- name: Spell checking with Cspell | ||
run: yarn cspell:ci | ||
- name: Format codebase with Prettier | ||
run: yarn prettier:ci | ||
- name: Lint codebase with Eslint | ||
run: yarn eslint:ci | ||
- name: Typecheck codebase | ||
run: yarn ts:check | ||
- name: Upload reports | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: eslint | ||
path: reports/eslint | ||
if-no-files-found: error | ||
qa-format-and-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: "yarn" | ||
- name: Install dependencies | ||
run: yarn install --immutable | ||
- name: Lint markdown | ||
run: yarn markdownlint:lint | ||
- name: Lint package.json | ||
run: yarn packagejson:lint | ||
- name: Check package.json library usage | ||
run: yarn packagejson:check | ||
- name: Spell checking with Cspell | ||
run: yarn cspell:ci | ||
- name: Format codebase with Prettier | ||
run: yarn prettier:ci | ||
- name: Lint codebase with Eslint | ||
run: yarn eslint:ci | ||
- name: Typecheck codebase | ||
run: yarn ts:check | ||
- name: Upload reports | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: eslint | ||
path: reports/eslint | ||
if-no-files-found: error | ||
|
||
qa-unit-testing: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: "yarn" | ||
- name: Install dependencies | ||
run: yarn install --immutable | ||
- name: Run unit and intergration specs | ||
run: yarn test:unit | ||
- name: Upload reports | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: mocha | ||
path: reports/mocha | ||
if-no-files-found: error | ||
qa-unit-testing: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: "yarn" | ||
- name: Install dependencies | ||
run: yarn install --immutable | ||
- name: Run unit and intergration specs | ||
run: yarn test:unit | ||
- name: Upload reports | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: mocha | ||
path: reports/mocha | ||
if-no-files-found: error | ||
|
||
qa-mutation-testing: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: "yarn" | ||
- name: Install dependencies | ||
run: yarn install --immutable | ||
- name: Run mutation specs | ||
run: yarn test:mutation | ||
# env: | ||
# STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} | ||
- name: Upload reports | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: stryker | ||
path: reports/stryker | ||
if-no-files-found: error | ||
qa-mutation-testing: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: "yarn" | ||
- name: Install dependencies | ||
run: yarn install --immutable | ||
- name: Run mutation specs | ||
run: yarn test:mutation | ||
# env: | ||
# STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} | ||
- name: Upload reports | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: stryker | ||
path: reports/stryker | ||
if-no-files-found: error | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: "yarn" | ||
- name: Install dependencies | ||
run: yarn install --immutable | ||
- name: Build package | ||
run: yarn build | ||
- name: Upload lib | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: lib | ||
path: lib | ||
if-no-files-found: error | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: "yarn" | ||
- name: Install dependencies | ||
run: yarn install --immutable | ||
- name: Build package | ||
run: yarn build | ||
- name: Upload lib | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: lib | ||
path: lib | ||
if-no-files-found: error | ||
|
||
# qa-sonar-cloud: | ||
# needs: [qa-lint, qa-unit-testing] | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# fetch-depth: 0 | ||
# - name: Use Node.js | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version-file: '.nvmrc' | ||
# cache: 'yarn' | ||
# - name: Install dependencies | ||
# run: yarn install | ||
# - name: Download Eslint artifact | ||
# uses: actions/download-artifact@v3 | ||
# with: | ||
# name: eslint | ||
# path: reports/eslint | ||
# - name: Download Jest artifact | ||
# uses: actions/download-artifact@v3 | ||
# with: | ||
# name: jest | ||
# path: reports/jest | ||
# - name: SonarCloud Scan | ||
# uses: SonarSource/sonarcloud-github-action@master | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
# qa-sonar-cloud: | ||
# needs: [qa-lint, qa-unit-testing] | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# fetch-depth: 0 | ||
# - name: Use Node.js | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version-file: '.nvmrc' | ||
# cache: 'yarn' | ||
# - name: Install dependencies | ||
# run: yarn install | ||
# - name: Download Eslint artifact | ||
# uses: actions/download-artifact@v3 | ||
# with: | ||
# name: eslint | ||
# path: reports/eslint | ||
# - name: Download Jest artifact | ||
# uses: actions/download-artifact@v3 | ||
# with: | ||
# name: jest | ||
# path: reports/jest | ||
# - name: SonarCloud Scan | ||
# uses: SonarSource/sonarcloud-github-action@master | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
|
||
# publish: | ||
# needs: [build, qa-format-and-lint, qa-unit-testing, qa-mutation-testing] | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# fetch-depth: 0 | ||
# persist-credentials: false | ||
# - name: Use Node.js | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version-file: '.nvmrc' | ||
# cache: 'yarn' | ||
# - name: Install dependencies | ||
# run: yarn install | ||
# - name: Download lib | ||
# uses: actions/download-artifact@v3 | ||
# with: | ||
# name: lib | ||
# path: lib | ||
# - name: Semantic release | ||
# run: yarn semantic-release | ||
# env: | ||
# GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# publish: | ||
# needs: [build, qa-format-and-lint, qa-unit-testing, qa-mutation-testing] | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# fetch-depth: 0 | ||
# persist-credentials: false | ||
# - name: Use Node.js | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version-file: '.nvmrc' | ||
# cache: 'yarn' | ||
# - name: Install dependencies | ||
# run: yarn install | ||
# - name: Download lib | ||
# uses: actions/download-artifact@v3 | ||
# with: | ||
# name: lib | ||
# path: lib | ||
# - name: Semantic release | ||
# run: yarn semantic-release | ||
# env: | ||
# GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
Oops, something went wrong.