forked from TrueFiEng/devcon-raffle
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Bartlomiej Tarczynski <[email protected]>
- Loading branch information
1 parent
1223af1
commit 7efc05c
Showing
3 changed files
with
54 additions
and
1 deletion.
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,37 @@ | ||
name: Install Node and package dependencies | ||
description: "Install Node dependencies with pnpm" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Use Node.js 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8.3.1 | ||
run_install: false | ||
|
||
- name: Get pnpm cache directory | ||
id: pnpm-cache-dir | ||
shell: bash | ||
run: echo "dir=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
|
||
- name: Cache PNPM | ||
uses: actions/cache@v4 | ||
id: pnpm-cache | ||
with: | ||
path: | | ||
${{ steps.pnpm-cache-dir.outputs.dir }} | ||
key: ${{ runner.os }}-node-${{ hashFiles('pnpm-lock.yaml') }} | ||
restore-keys: ${{ runner.os }}-node- | ||
|
||
- name: Install packages | ||
shell: bash | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Build everything in the monorepo | ||
shell: bash | ||
run: pnpm build |
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,16 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
clean: false | ||
- name: Install Node and dependencies | ||
uses: ./.github/actions/install-dependencies | ||
- run: pnpm run lint |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"version": "0.0.1", | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"lint": "turbo lint", | ||
"lint": "turbo lint --filter=frontend", | ||
"build": "turbo build", | ||
"test": "turbo test", | ||
"verify": "turbo verify" | ||
|