-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
Update v1 branch to latest master
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,6 @@ | ||
| me: "CodeQL config" | ||
| name: "CodeQL config" | ||
| queries: | ||
| - name: Run custom queries | ||
| uses: ./queries | ||
| paths-ignore: | ||
| - tests |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| name: "PR checks" | ||
|
|
||
| on: [push, pull_request] | ||
|
|
||
| jobs: | ||
| tslint: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| - name: tslint | ||
| run: npm run-script lint | ||
|
|
||
| check-js: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| - name: Check generated JavaScript | ||
| run: | | ||
| # Sanity check that repo is clean to start with | ||
| if [ ! -z "$(git status --porcelain)" ]; then | ||
| # If we get a fail here then this workflow needs attention... | ||
| >&2 echo "Failed: Repo should be clean before testing!" | ||
| exit 1 | ||
| fi | ||
| # Generate the JavaScript files | ||
| npm run-script build | ||
| # Check that repo is still clean | ||
| if [ ! -z "$(git status --porcelain)" ]; then | ||
| # If we get a fail here then the PR needs attention | ||
| >&2 echo "Failed: JavaScript files are not up to date. Run 'npm run-script build' to update" | ||
| git status | ||
| exit 1 | ||
| fi | ||
| echo "Success: JavaScript files are up to date" | ||
| check-node-modules: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| - name: Check node modules up to date | ||
| run: | | ||
| # Sanity check that repo is clean to start with | ||
| if [ ! -z "$(git status --porcelain)" ]; then | ||
| # If we get a fail here then this workflow needs attention... | ||
| >&2 echo "Failed: Repo should be clean before testing!" | ||
| exit 1 | ||
| fi | ||
| # Reinstall modules and then clean to remove absolute paths | ||
| # Use 'npm ci' instead of 'npm install' as this is intended to be reproducible | ||
| npm ci | ||
| npm run removeNPMAbsolutePaths | ||
| # Check that repo is still clean | ||
| if [ ! -z "$(git status --porcelain)" ]; then | ||
| # If we get a fail here then the PR needs attention | ||
| >&2 echo "Failed: node_modules are not up to date. Run 'npm ci' and 'npm run removeNPMAbsolutePaths' to update" | ||
| git status | ||
| exit 1 | ||
| fi | ||
| echo "Success: node_modules are up to date" | ||
| npm-test: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| - name: npm run-script test | ||
| run: npm run-script test |
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.