Skip to content

Commit

Permalink
ci: update actions workflow (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshxfi authored Jul 16, 2024
1 parent 3c654e8 commit 043ae47
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 65 deletions.
49 changes: 28 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,41 @@
name: CI

on:
- push:
branches:
- "**"
- pull_request:
branches:
- main
push:
branches:
- "**"
pull_request:
branches:
- main

jobs:
build:
uses: ./.github/workflows/setup.yml
with:
node-version: 20
pnpm-version: 9.5.0
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]

steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.5.0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Run GraphQL diagnostics
run: pnpm gql:check

- name: Build project
env:
TURSO_CONNECTION_URL: ${{ secrets.TURSO_CONNECTION_URL }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
run: pnpm build

graphql-diagnostics:
need: build
uses: ./.github/workflows/setup.yml
with:
node-version: 20
pnpm-version: 9.5.0

steps:
- name: Run GraphQL diagnostics
run: pnpm gql:check
44 changes: 0 additions & 44 deletions .github/workflows/setup.yml

This file was deleted.

0 comments on commit 043ae47

Please sign in to comment.