-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from caido-community/Corb3nik/add-validate-work…
…flow Add a validate workflow for each template
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 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,49 @@ | ||
name: Validate | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
pull_request: | ||
|
||
env: | ||
NODE_VERSION: 20 | ||
PNPM_VERSION: 9 | ||
|
||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
strategy: | ||
matrix: | ||
template: | ||
- frontend-vanilla | ||
- frontend-vue | ||
- no-frontend | ||
|
||
steps: | ||
- name: Checkout project | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: ${{ env.PNPM_VERSION }} | ||
run_install: false | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
working-directory: templates/${{ matrix.template }} | ||
|
||
- name: Build | ||
run: pnpm build | ||
working-directory: templates/${{ matrix.template }} | ||
|
||
- name: Typecheck | ||
run: pnpm typecheck | ||
working-directory: templates/${{ matrix.template }} |