-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: set up build and test CI (#12)
- Loading branch information
sam
authored
Jan 18, 2023
1 parent
a3b29e2
commit 3e5e439
Showing
4 changed files
with
61 additions
and
2 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,36 @@ | ||
name: Setup | ||
description: "Setup Project" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 6.32.9 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" | ||
cache: "pnpm" | ||
|
||
- uses: pnpm/action-setup@v2.2.4 | ||
with: | ||
version: 7.13.5 | ||
|
||
- run: pnpm install --frozen-lockfile | ||
shell: bash | ||
|
||
- name: Ensure no changes | ||
run: git diff --exit-code | ||
shell: bash | ||
|
||
- name: "Generate" | ||
run: pnpm gen | ||
shell: bash | ||
|
||
- name: Build | ||
run: pnpm build | ||
env: | ||
NODE_OPTIONS: --max-old-space-size=6144 | ||
shell: bash |
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: build | ||
on: | ||
pull_request: {} | ||
workflow_call: {} | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
concurrency: build | ||
env: | ||
CI: "true" | ||
CLEAN_UP_STACK: "1" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/build | ||
- name: Run tests | ||
run: pnpm test | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_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