-
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.
- Loading branch information
1 parent
0a6b941
commit 3dea76f
Showing
1 changed file
with
49 additions
and
53 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 |
---|---|---|
@@ -1,53 +1,49 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
build: | ||
name: Build and Test | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Cache turbo build setup | ||
uses: actions/cache@v3 | ||
with: | ||
path: .turbo | ||
key: ${{ runner.os }}-turbo-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-turbo- | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
run_install: false | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Install Playwright Browsers | ||
run: pnpm exec playwright install chromium | ||
|
||
- name: Build | ||
run: pnpm build | ||
|
||
# - name: TypeScript | ||
# run: pnpm tsc | ||
|
||
- name: Test | ||
run: pnpm test | ||
# name: CI | ||
|
||
# on: | ||
# push: | ||
# branches: ["main"] | ||
# pull_request: | ||
# types: [opened, synchronize] | ||
|
||
# jobs: | ||
# build: | ||
# name: Build and Test | ||
# timeout-minutes: 15 | ||
# runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - name: Check out code | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# fetch-depth: 2 | ||
|
||
# - name: Cache turbo build setup | ||
# uses: actions/cache@v3 | ||
# with: | ||
# path: .turbo | ||
# key: ${{ runner.os }}-turbo-${{ github.sha }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-turbo- | ||
|
||
# - uses: pnpm/action-setup@v3 | ||
# with: | ||
# version: 8 | ||
# run_install: false | ||
|
||
# - uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: 18 | ||
# cache: "pnpm" | ||
|
||
# - name: Install dependencies | ||
# run: pnpm install | ||
|
||
# - name: Install Playwright Browsers | ||
# run: pnpm exec playwright install chromium | ||
|
||
# - name: Build | ||
# run: pnpm build | ||
|
||
# - name: Test | ||
# run: pnpm test |