-
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.
- Loading branch information
1 parent
ac571ed
commit f1584bb
Showing
10 changed files
with
170 additions
and
146 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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,19 @@ | ||
name: 'Assign pull request author' | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
assign-author: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: myparcelnl/actions/pr-assign-author@v3 | ||
with: | ||
app-id: ${{ secrets.MYPARCEL_APP_ID }} | ||
private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }} |
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,20 @@ | ||
name: 'Label pull request' | ||
|
||
on: | ||
pull_request_review: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
label: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: myparcelnl/actions/pr-label-by-review@v3 | ||
with: | ||
app-id: ${{ secrets.MYPARCEL_APP_ID }} | ||
private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }} | ||
label-approved: 'approved' | ||
label-changes-requested: 'changes requested' | ||
protection-type: 'rulesets' |
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,20 @@ | ||
name: 'Lint pull request title' | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- edited | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: myparcelnl/actions/pr-validate-title-conventional@v3 | ||
with: | ||
app-id: ${{ secrets.MYPARCEL_APP_ID }} | ||
private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }} |
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,61 @@ | ||
name: 'Run tests 🧪' | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- beta | ||
- alpha | ||
|
||
paths-ignore: | ||
- ./**/*.md | ||
|
||
merge_group: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref_name }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
uses: ./.github/workflows/test.yml | ||
secrets: inherit | ||
|
||
typecheck: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: myparcelnl/actions/yarn-install@v3 | ||
with: | ||
node-version: ${{ vars.NODE_VERSION }} | ||
|
||
- name: 'Run typecheck' | ||
# language=sh | ||
run: | | ||
nx run-many \ | ||
--runner="cloud" \ | ||
--output-style="static" \ | ||
--target="typecheck" | ||
bundlewatch: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: myparcelnl/actions/yarn-install@v3 | ||
with: | ||
node-version: ${{ vars.NODE_VERSION }} | ||
|
||
- name: 'Build' | ||
shell: bash | ||
# language=sh | ||
run: | | ||
nx run-many \ | ||
--runner="cloud" \ | ||
--output-style="static" \ | ||
--target="build" | ||
- uses: myparcelnl/actions/bundlewatch@v3 | ||
with: | ||
token: ${{ secrets.BUNDLEWATCH_TOKEN }} |
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,31 +1,32 @@ | ||
name: 'Run tests 🧪' | ||
name: '🔸 Run tests 🧪' | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- alpha | ||
- beta | ||
|
||
merge_group: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
workflow_call: | ||
|
||
jobs: | ||
test: | ||
name: 'Run unit tests' | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
node-version: [18, 20] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/test | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: myparcelnl/actions/yarn-install@v3 | ||
with: | ||
codecov-token: ${{ secrets.CODECOV_TOKEN }} | ||
node-version: ${{ matrix.node-version }} | ||
|
||
build: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/build | ||
- name: 'Run tests' | ||
#language=sh | ||
run: | | ||
nx run-many \ | ||
--runner="cloud" \ | ||
--output-style="static" \ | ||
--target="test:coverage" | ||
- uses: codecov/codecov-action@v3 | ||
if: matrix.node-version == vars.NODE_VERSION | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
files: coverage/clover.xml | ||
token: ${{ secrets.CODECOV_TOKEN }} |
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