Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge branch 'main' into split-upload-method
- Loading branch information
Showing
76 changed files
with
8,064 additions
and
489 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
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,22 @@ | ||
name: Check Expected Release Files | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- .github/workflows/check-expected-release-files.yml | ||
- src/defaults.json | ||
|
||
jobs: | ||
check-expected-release-files: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout CodeQL Action | ||
uses: actions/checkout@v2 | ||
- name: Check Expected Release Files | ||
run: | | ||
bundle_version="$(cat "./src/defaults.json" | jq -r ".bundleVersion")" | ||
set -x | ||
for expected_file in "codeql-bundle.tar.gz" "codeql-bundle-linux64.tar.gz" "codeql-bundle-osx64.tar.gz" "codeql-bundle-win64.tar.gz" "codeql-runner-linux" "codeql-runner-macos" "codeql-runner-win.exe"; do | ||
curl --location --fail --head --request GET "https://github.com/github/codeql-action/releases/download/$bundle_version/$expected_file" > /dev/null | ||
done |
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
push: | ||
branches: [main, v1] | ||
pull_request: | ||
branches: [main, v1] | ||
|
||
jobs: | ||
build: | ||
|
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
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
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,21 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
# 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 | ||
# Wipe the lib directory incase there are extra unnecessary files in there | ||
rm -rf lib | ||
# 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" |
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,21 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
# 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" |
Oops, something went wrong.