Skip to content

Commit

Permalink
Add a GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
illright committed Jun 8, 2024
1 parent e017191 commit 4358236
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'Setup and install'
description: 'Common setup steps for Actions'

runs:
using: composite
steps:
- shell: bash
run: npm i -g pnpm@^9 turbo

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- uses: actions/checkout@v4

- shell: bash
run: pnpm install
30 changes: 30 additions & 0 deletions .github/workflows/quality.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Quality

on:
push:
branches:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
quality-checks:
name: Quality checks
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup

- name: Run checks
run: |
turbo run check-formatting lint typecheck test
pnpm check-monorepo
- name: Try building
run: turbo run build

0 comments on commit 4358236

Please sign in to comment.