Skip to content

Use the local versions of our actions in our workflows, and add jest - #8

Merged
jaredly merged 42 commits into
mainfrom
use-local
May 19, 2022
Merged

Use the local versions of our actions in our workflows, and add jest#8
jaredly merged 42 commits into
mainfrom
use-local

Conversation

@jaredly

@jaredly jaredly commented May 19, 2022

Copy link
Copy Markdown
Contributor

Summary:

By referencing the actions locally, we can test out changes in the same pull-request, instead of waiting until landing (when the new version would get published).
I also noticed a bug in build.mjs (using # instead of @, which will result in an error in github actions), so I added a test for processActionYml.

Issue: XXX-XXXX

Test plan:

yarn test

jaredly added 30 commits May 18, 2022 16:29
Summary:
Setting up this repository! Very excited.

Test plan:
🚫
Summary:
They'd been copied over from graphql-flow, but I figured the Khan/perseus ones might have more recent changes.
The next PR will contain our build & publish scripts.

I also created a 'check-for-changeset' action that I noticed in the perseus pr-actions workflow :)

Test plan:
🤞 not usable/testable quite yet!
…the Khan/actions repo

Summary:
Here's the magic! This will allow us to reference e.g. `Khan/actions@filter-files-v0.0.1` in our workflows (as described in the readme).
I've also added basic workflows, one to check for a changeset, and one to automate releases when a release PR lands.

Test plan:
See the workflow work! I published check-for-changeset-v0.0.0 manually from the CLI to demonstrate.
Summary:
It's very simple for the moment because we're not doing any transpilation. We might decide to adopt typescript or something if we start to have more complicated actions.

Test plan:
`yarn lint` should work!
Also see the github action doing its thing.
…versions

Summary:
it'd be a hassle to have to change all our workflows for patch versions of these.
Now you can do `uses: Khan/actions@filter-files-v1` and it will get all 1.x.x versions.

Test plan:
```bash
actions on  major-version ➜ g tag -d full-or-limited-v0.0.0
Deleted tag 'full-or-limited-v0.0.0' (was 4e86abe)
actions on  major-version ➜ g push origin :full-or-limited-v0.0.0
To github.com:Khan/actions.git
 - [deleted]         full-or-limited-v0.0.0
actions on  major-version ➜ node utils/run-publish.mjs
From .
 * branch            lints      -> FETCH_HEAD
To github.com:Khan/actions.git
 * [new tag]         full-or-limited-v0.0.0 -> full-or-limited-v0.0.0
remote: warning: Deleting a non-existent ref.
To github.com:Khan/actions.git
 - [deleted]         full-or-limited-v0
To github.com:Khan/actions.git
 * [new tag]         full-or-limited-v0 -> full-or-limited-v0
```
jaredly added 6 commits May 19, 2022 15:03
Summary:
By referencing the actions locally, we can test out changes in the same pull-request, instead of waiting until landing (when the new version would get published).
I also noticed a bug in build.mjs (using `#` instead of `@`, which will result in an error in github actions), so I added a test for processActionYml.

Test plan:
`yarn test`
@jaredly jaredly self-assigned this May 19, 2022
@khan-actions-bot

khan-actions-bot commented May 19, 2022

Copy link
Copy Markdown
Contributor

Gerald

Required Reviewers
  • @Khan/github-actions for changes to .eslintrc.js, .gitattributes, package.json, yarn.lock, .changeset/tender-weeks-care.md, utils/build.mjs, utils/build.test.mjs, .github/workflows/node-ci.yml, .github/workflows/release.yml, actions/full-or-limited/action.yml, actions/gerald-pr/package.json

Don't want to be involved in this pull request? Comment #removeme and we won't notify you of further changes.

@khan-actions-bot
khan-actions-bot requested a review from a team May 19, 2022 20:21
Comment thread utils/build.mjs Outdated
Co-authored-by: John Resig <jeresig@gmail.com>
Base automatically changed from gerald to main May 19, 2022 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants