-
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.
Merge pull request #1 from mozilla/branch
chore(): should not work
- Loading branch information
Showing
6 changed files
with
71 additions
and
3 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,21 @@ | ||
name: ci build | ||
run-name: ${{ github.actor }} is learning GitHub Actions | ||
on: | ||
pull_request: | ||
merge_group: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
- name: Install dependencies | ||
run: npm i | ||
- name: Build | ||
run: npm run build | ||
env: | ||
CI_DELAY: "60000" | ||
CI_FAIL: "" |
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,4 +1,2 @@ | ||
# test-github-features | ||
Repo to test github settings for PRs, CI, merging | ||
|
||
Cannot push to main. | ||
Repo to test github settings for PRs, CI, merging |
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,18 @@ | ||
#!/usr/bin/env node | ||
|
||
const delay = parseInt(process.env.CI_DELAY || 3_000, 10); | ||
const shouldFail = Boolean(process.env.CI_FAIL || ''); | ||
|
||
console.log('config', {delay, shouldFail, raw: { delay: process.env.CI_DELAY, shouldFail: process.env.CI_FAIL}}); | ||
|
||
await new Promise((resolve, reject) => { | ||
console.log(`Running build... for ${delay / 1000} seconds`); | ||
setTimeout(() => { | ||
if (shouldFail) { | ||
return reject('failing.... booo'); | ||
} | ||
resolve(true); | ||
}, delay); | ||
}); | ||
|
||
console.log("Built!"); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,11 @@ | ||
{ | ||
"name": "test-github-features", | ||
"version": "1.0.0", | ||
"description": "Repo to test github settings for PRs, CI, merging", | ||
"main": "index.js", | ||
"scripts": { | ||
"build": "node ./build.mjs" | ||
}, | ||
"author": "", | ||
"license": "ISC" | ||
} |