-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: bring ci workflow into line with our current standards
- Loading branch information
1 parent
bd2e6e7
commit 40600ea
Showing
6 changed files
with
128 additions
and
46 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
pull_request_rules: | ||
- name: Automatically merge security pull requests | ||
conditions: | ||
- author=dependabot[bot] | ||
- label!=wontfix | ||
- check-success=🔨 Build | ||
- check-success=🧪 Test | ||
- check-success=👩🎤 Playwright Tests | ||
- check-success=🧹 Lint | ||
- check-success=SonarCloud Code Analysis | ||
actions: | ||
review: | ||
type: APPROVE | ||
message: Automatically approving dependabot | ||
merge: | ||
method: merge | ||
- name: Automatically merge when all checks pass and the PR has been approved | ||
conditions: | ||
- check-success=🔨 Build | ||
- check-success=🧪 Test | ||
- check-success=🧹 Lint | ||
- check-success=SonarCloud Code Analysis | ||
- "#review-requested=0" | ||
- "#approved-reviews-by>=1" | ||
actions: | ||
merge: | ||
method: merge | ||
- name: Ask for reviews | ||
conditions: | ||
- -closed | ||
- -draft | ||
- -author=dependabot[bot] | ||
actions: | ||
request_reviews: | ||
teams: | ||
- devs | ||
random_count: 1 |
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,19 +1,51 @@ | ||
name: CI | ||
|
||
--- | ||
name: 👮 CI | ||
on: | ||
push: | ||
pull_request: | ||
|
||
branches: [main] | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
permissions: read-all | ||
jobs: | ||
build: | ||
name: 🔨 Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.18.1 | ||
cache: 'npm' | ||
- run: npm ci --no-audit --prefer-offline | ||
- run: npm run build | ||
- run: npm test | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: npm | ||
- run: npm ci | ||
- run: npm run build | ||
test: | ||
name: 🧪 Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: npm | ||
- run: npm ci | ||
- run: npm test | ||
lint: | ||
name: 🧹 Lint | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: npm | ||
- run: npm ci | ||
- uses: oxsecurity/megalinter/flavors/javascript@v7 | ||
env: | ||
VALIDATE_ALL_CODEBASE: false | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Configuration file for MegaLinter | ||
# | ||
# See all available variables at https://megalinter.io/latest/config-file/ and in | ||
# linters documentation | ||
--- | ||
APPLY_FIXES: none | ||
|
||
DISABLE: | ||
- COPYPASTE | ||
- SPELL | ||
|
||
DISABLE_LINTERS: | ||
# We use stylelint for CSS and SCSS linting | ||
- CSS_SCSS_LINT | ||
# Disable in favour of eslint | ||
- JAVASCRIPT_STANDARD | ||
# We use dependabot for vulnerability monitoring and patching | ||
- REPOSITORY_GRYPE | ||
# Not needed in this repository | ||
- REPOSITORY_TRIVY | ||
# Disable in favour of eslint | ||
- TYPESCRIPT_STANDARD | ||
# Link check flags localhost links in the contributing docs | ||
- MARKDOWN_MARKDOWN_LINK_CHECK | ||
# V8R keeps giving false positives | ||
- YAML_V8R | ||
|
||
SHOW_ELAPSED_TIME: true | ||
|
||
FILEIO_REPORTER: false | ||
|
||
# Config paths | ||
CSS_STYLELINT_CONFIG_FILE: stylelint.config.js | ||
JAVASCRIPT_ES_CONFIG_FILE: .eslintrc | ||
TYPESCRIPT_ES_CONFIG_FILE: .eslintrc | ||
|
||
# Executable overrides | ||
CSS_STYLELINT_CLI_EXECUTABLE: ['./node_modules/.bin/stylelint'] | ||
|
||
# Linters configuration | ||
REPOSITORY_GITLEAKS_DISABLE_ERRORS: true |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
audit=false | ||
noFund=true | ||
preferOffline=true |
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