-
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.
👷 ASL-4247: Publish to GitHub repo instead of private HomeOffice repo. (
#86) * ASL-4247: Boyscout: Remove contributors * ASL-4247: Boyscout: Remove travis config * ASL-4247: Boyscout: Import eslint from https://github.com/UKHomeOffice/hocs-frontend * ASL-4247: Add Dependabot * ASL-4247: Add Codeql * ASL-4247: Add sas test workflow * ASL-4247: Publish to GitHub repo. This allows us to simplify CI pipelines and let developers access with credentials they already have. * ASL-4247 - Corrected env var reference in .npmrc --------- Co-authored-by: Tom Rowsell <[email protected]>
- Loading branch information
1 parent
67266ab
commit 40e0784
Showing
41 changed files
with
1,107 additions
and
2,066 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,75 @@ | ||
module.exports = { | ||
'env': { | ||
'node': true, | ||
'browser': true, | ||
'commonjs': true, | ||
'es6': true | ||
}, | ||
'extends': [ | ||
'eslint:recommended', | ||
'plugin:react/recommended' | ||
], | ||
'parserOptions': { | ||
'ecmaVersion': 2020, | ||
'sourceType': 'module' | ||
}, | ||
'settings': { | ||
'react': { | ||
'version': 'detect' | ||
} | ||
}, | ||
'rules': { | ||
'react/prop-types': 'off', | ||
'indent': [ | ||
'error', | ||
4 | ||
, { 'SwitchCase': 1 } | ||
], | ||
'linebreak-style': [ | ||
'error', | ||
'unix' | ||
], | ||
'no-unused-vars': [ | ||
'error', | ||
{ 'argsIgnorePattern': '^_$' } | ||
], | ||
'quotes': [ | ||
'error', | ||
'single' | ||
], | ||
'semi': [ | ||
'error', | ||
'always' | ||
], | ||
'object-curly-spacing': [ | ||
'error', 'always' | ||
], | ||
'no-trailing-spaces': [ | ||
'error' | ||
] | ||
}, | ||
'overrides': [ | ||
{ | ||
'files': [ '**/__tests__/**' ], | ||
'env': { | ||
'jest': true | ||
}, | ||
'globals': { | ||
'render': false, | ||
'shallow': false, | ||
'wrapper': false, | ||
'mount': false | ||
} | ||
}, | ||
{ | ||
'files': [ '**/__snapshots__/**' ], | ||
'excludedFiles': '*.js.snap' | ||
}, | ||
{ | ||
'files': [ 'src/**' ], | ||
'env': { | ||
'commonjs': 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,28 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: "⬆️ " | ||
pull-request-branch-name: | ||
separator: "-" | ||
reviewers: | ||
- "UKHomeOffice/asl-devs" | ||
labels: | ||
- "skip-release" | ||
- "dependencies" | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: "⬆️ " | ||
pull-request-branch-name: | ||
separator: "-" | ||
reviewers: | ||
- "UKHomeOffice/asl-devs" | ||
labels: | ||
- "patch" | ||
- "dependencies" |
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,39 @@ | ||
name: "CodeQL Scan" | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
schedule: | ||
- cron: '45 12 * * 1' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'javascript' ] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
|
||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
with: | ||
category: "/language:${{matrix.language}}" |
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,9 @@ | ||
name: 'Publish - npm' | ||
on: | ||
pull_request: | ||
types: [ closed ] | ||
|
||
jobs: | ||
publish: | ||
uses: UKHomeOffice/sas-github-workflows/.github/workflows/publish-npm.yml@v1 | ||
secrets: inherit |
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,8 @@ | ||
name: 'Increment Version - npm' | ||
on: | ||
pull_request: | ||
types: [ labeled, unlabeled, opened, reopened, synchronize ] | ||
|
||
jobs: | ||
version: | ||
uses: UKHomeOffice/sas-github-workflows/.github/workflows/semver-check-increment-npm.yml@v1 |
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,9 @@ | ||
name: 'Test' | ||
on: | ||
pull_request: | ||
types: [ opened, reopened, synchronize ] | ||
|
||
jobs: | ||
test: | ||
uses: UKHomeOffice/sas-github-workflows/.github/workflows/test-npm.yml@v1 | ||
secrets: inherit |
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,2 @@ | ||
@ukhomeoffice:registry=https://npm.pkg.github.com | ||
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.