-
Notifications
You must be signed in to change notification settings - Fork 49
25 lines (23 loc) · 839 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: CI
on: push
jobs:
ci:
runs-on: ubuntu-latest
environment: ${{ github.ref_name }}
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker compose up --build --detach ci
- name: pnpm build
run: docker compose exec --no-TTY ci pnpm build
- name: pnpm preview
run: docker compose exec --detach --no-TTY ci pnpm preview
- name: pnpm check
run: docker compose exec --no-TTY ci pnpm check
- name: pnpm test
run: docker compose exec --no-TTY ci pnpm test
- name: pnpm e2e
run: docker compose exec --no-TTY ci pnpm e2e
- name: Trigger deployment
if: ${{ contains(fromJSON('["refs/heads/main", "refs/heads/release", "refs/heads/prod"]'), github.ref) }}
run: curl -k ${{ secrets.DEPLOY_HOOK }}