Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepare ci for apps dir #508

Merged
merged 2 commits into from
Oct 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,31 +43,29 @@ jobs:
DATABASE_URL: 'file:data/test.db'
VITE_NEXTAUTH_URL: 'http://localhost:3000'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
persist-credentials: false
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
node-version-file: '.node-version'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile --silent
- run: pnpm lint
# build ./packages/*
- run: pnpm build:lib
# build SvelteKit app and Server
- run: pnpm build
- run: corepack enable
- run: pnpm install
- run: pnpm run lint
# build workspace
- run: pnpm run build
env:
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
VITE_HOST: ${{ secrets.VITE_HOST }}
VITE_NEXTAUTH_URL: ${{ secrets.VITE_NEXTAUTH_URL }}
VITE_DISCORD_GUILD_ID: ${{ secrets.VITE_DISCORD_GUILD_ID }}
- run: pnpm prisma db push
- run: pnpm run setup-test
env:
DATABASE_URL: 'file:data/test.db'
- run: pnpm test
- run: pnpm run test
env:
DISCORD_GUILD_ID: ${{ secrets.VITE_DISCORD_GUILD_ID }}
DISCORD_WEBHOOK_URL_RELEASES: ${{ secrets.DISCORD_WEBHOOK_URL_RELEASES }}
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.10.0
Loading