-
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 status checks…
update workflow
1 parent
2837177
commit 980fc89
Showing
3 changed files
with
79 additions
and
28 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,78 @@ | ||
permissions: write-all | ||
|
||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main, development] | ||
paths-ignore: | ||
- '**/*.md' | ||
- '**/*.env.example' | ||
- '.gitignore' | ||
pull_request: | ||
branches: [main, development] | ||
paths-ignore: | ||
- '**/*.md' | ||
- '**/*.env.example' | ||
- '.gitignore' | ||
|
||
env: | ||
CI: true | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
env: | ||
PLAYWRIGHT_USERNAME: ${{ secrets.PLAYWRIGHT_USERNAME }} | ||
PLAYWRIGHT_PASSWORD: ${{ secrets.PLAYWRIGHT_PASSWORD }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4.1.4 | ||
|
||
- name: Install Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18.18.0' | ||
|
||
- uses: pnpm/action-setup@v4 | ||
name: Install pnpm | ||
with: | ||
version: 9 | ||
run_install: false | ||
|
||
- name: Get pnpm store directory | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- uses: actions/cache@v4 | ||
name: Setup pnpm cache | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
lint: | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.4 | ||
- run: pnpm run lint | ||
|
||
build: | ||
needs: lint | ||
runs-on: ubuntu-latest | ||
outputs: | ||
build-artifact: build | ||
steps: | ||
- uses: actions/checkout@v4.1.4 | ||
- run: pnpm run build | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: .next | ||
path: .next |
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