Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/build-and-review-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ on:
# without disabling that requirement. If we have a status check that is always produced,
# we can also use that to require all branches be up to date before they are merged.

permissions:
contents: write
pull-requests: write

jobs:
build-and-review-pr:
# This reusable workflow will check to see if an action's source code has changed based on
Expand All @@ -34,7 +38,7 @@ jobs:
# This workflow assumes:
# - The main README.md is at the root of the repo
# - The README contains a contribution guidelines and usage examples section
uses: im-open/.github/.github/workflows/reusable-build-and-review-pr.yml@v1
uses: im-open/.github/.github/workflows/reusable-build-and-review-pr.yml@v2
with:
action-name: ${{ github.repository }}
default-branch: main
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/increment-version-on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ on:
# if this action should be incremented and if new tags should be pushed to the repo based
# on the same criteria used in the build-and-review-pr.yml workflow.

permissions:
contents: write

jobs:
increment-version:
uses: im-open/.github/.github/workflows/reusable-increment-version-on-merge.yml@v1
uses: im-open/.github/.github/workflows/reusable-increment-version-on-merge.yml@v2
with:
default-branch: main

Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/test-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,35 @@ on:
pull_request:
types: [opened, synchronize, reopened]

permissions:
checks: write
contents: write
pull-requests: write

jobs:
test-code:
runs-on: [ubuntu-latest]
env:
jest-output-file: ./jest-results.json

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v7

- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 20
node-version: 24

- name: Test Code
continue-on-error: true
run: |
npm install
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
./node_modules/.bin/jest --json --outputFile=${{env.jest-output-file}} ./src/
node --experimental-vm-modules node_modules/jest/bin/jest.js --json --outputFile=${{env.jest-output-file}} ./src/

- name: Process jest results
id: process-jest
uses: im-open/process-jest-test-results@v2.1.3
uses: im-open/process-jest-test-results@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
results-file: ${{env.jest-output-file}}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
deploy-different-ways:
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v7

- id: deploy-to-qa
continue-on-error: true #Setting to true so the deployment board can be updated, even if this fails
Expand All @@ -70,7 +70,7 @@ jobs:
- name: Create GitHub Deployment
id: defaults
continue-on-error: true # Setting to true so the job doesn't fail if updating the board fails.
uses: im-open/create-github-deployment@v1.0.10 # You may also reference just the major or major.minor version
uses: im-open/create-github-deployment@v2.0.0 # You may also reference just the major or major.minor version
with:
workflow-actor: ${{ github.actor }} # This will add the user who kicked off the workflow to the deployment payload
token: ${{ secrets.GITHUB_TOKEN }} # If a different token is used, update github-login with the corresponding account
Expand Down
1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default { presets: ['@babel/preset-env'] };
Loading
Loading