Repository navigation
Use the local versions of our actions in our workflows, and add jest #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 36 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
49674d5
Readme, package.json, changesets, and README
jaredly 8d8993d
Bring over our composite actions from Khan/perseus
jaredly 2ecc423
Add scripts to build & publish our github actions, to 'bare tags' in …
jaredly 2e88c2a
cs
jaredly 90912bc
cs
jaredly 9872ee4
move to utils
jaredly 83543dd
Add eslint & prettier
jaredly 569baa0
action
jaredly ba2bf81
separate run
jaredly b39f5e0
refactor out the tricky bit
jaredly feb1417
Merge branch 'publish' into lints
jaredly 753d6f7
fix
jaredly b36e072
lint
jaredly 45ad3b3
Merge branch 'main' into publish
jaredly a4eee22
fix
jaredly 3b4a112
ok
jaredly bcd4999
Merge branch 'main' into lints
jaredly 6497194
cs
jaredly 1538ebf
Add major version tags, to allow implicit upgrades for patch & minor …
jaredly 8e90c0e
cs
jaredly 99cf14d
gerald it up
jaredly 55c1182
ok
jaredly 35b2050
hm
jaredly 61f58ae
checkout
jaredly 43dc211
oh base
jaredly 73500fc
tokens
jaredly ea6aaf2
empty not
jaredly 7cbb474
ugh
jaredly 17b2e0b
ughh
jaredly 75f8a88
rename
jaredly 5bad143
cleanup
jaredly c0180eb
lint
jaredly c7d6bc8
Merge branch 'main' into gerald
jaredly 657910f
fix
jaredly 4e260e9
backout
jaredly 45beacc
Use the local versions of our actions in our workflows, and add jest
jaredly da78a0d
cs
jaredly 5af0f3a
Update utils/build.mjs
jaredly b53a8e5
Merge branch 'main' into use-local
jaredly 073c5d5
Merge branch 'use-local' of github.com:Khan/actions into use-local
jaredly cd1923f
lint
jaredly d878159
fix
jaredly File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
| yarn.lock binary linguist-generated |
This file contains hidden or 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 @@ | ||
| [ON PULL REQUEST] (DO NOT DELETE THIS LINE) | ||
| [ON PUSH WITHOUT PULL REQUEST] (DO NOT DELETE THIS LINE) |
This file contains hidden or 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 @@ | ||
| [ON PULL REQUEST] (DO NOT DELETE THIS LINE) | ||
|
|
||
| **/* @Khan/github-actions! |
This file contains hidden or 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,14 @@ | ||
| name: Gerald - Notify and Request Reviewers On Pull Request | ||
| 'on': | ||
| pull_request: | ||
| types: [opened, synchronize, reopened, ready_for_review, edited] | ||
|
|
||
| jobs: | ||
| gerald: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: ./actions/gerald-pr | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| admin-token: ${{ secrets.KHAN_ACTIONS_BOT_TOKEN }} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,34 @@ | ||
| name: Gerald | ||
| description: Auto assign reviewers | ||
| inputs: | ||
| token: | ||
| description: secrets.GITHUB_TOKEN | ||
| required: true | ||
| admin-token: | ||
| description: A token that has admin permissions for this repo | ||
| required: true | ||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - name: Get All Changed Files | ||
| uses: jaredly/get-changed-files@absolute | ||
| id: changed | ||
| with: | ||
| format: 'json' | ||
| - uses: allenevans/set-env@v2.0.0 | ||
| with: | ||
| ALL_CHANGED_FILES: '${{ steps.changed.outputs.added_modified }}' | ||
| - name: Check out base branch | ||
| uses: actions/checkout@v2 | ||
| with: | ||
| ref: '${{ github.base_ref }}' | ||
| - name: Check out head branch | ||
| uses: actions/checkout@v2 | ||
| with: | ||
| ref: '${{ github.head_ref }}' | ||
| - name: Run Gerald | ||
| uses: Khan/gerald@main | ||
| env: | ||
| GITHUB_TOKEN: '${{ inputs.token }}' | ||
| ADMIN_PERMISSION_TOKEN: '${{ inputs.admin-token }}' | ||
| EVENT: 'pull_request' |
This file contains hidden or 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,4 @@ | ||
| { | ||
| "name": "gerald", | ||
| "version": "0.0.0" | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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,45 @@ | ||
| import {processActionYml} from "./build.mjs"; | ||
|
|
||
| describe("processActionYml", () => { | ||
| it("should work", () => { | ||
| const before = ` | ||
| name: Example | ||
| description: Do a thing | ||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - name: Limited run | ||
| uses: ./actions/json-args | ||
| `; | ||
| expect( | ||
| processActionYml( | ||
| `full-or-limited`, | ||
| { | ||
| "full-or-limited": { | ||
| version: "0.1.2", | ||
| dependencies: { | ||
| "json-args": "*", | ||
| }, | ||
| }, | ||
|
|
||
| "json-args": { | ||
| version: "1.2.3", | ||
| }, | ||
| }, | ||
|
|
||
| before, | ||
| "Our/monorepo", | ||
| ), | ||
| ).toMatchInlineSnapshot(` | ||
| " | ||
| name: Example | ||
| description: Do a thing | ||
| runs: | ||
| using: \\"composite\\" | ||
| steps: | ||
| - name: Limited run | ||
| uses: Our/monorepo@json-args-v1.2.3 | ||
| " | ||
| `); | ||
| }); | ||
| }); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.