Skip to content

Commit

Permalink
chore(ci): general updates (#8)
Browse files Browse the repository at this point in the history
Co-authored-by: Thorsten Lünborg <t.luenborg@googlemail.com>
  • Loading branch information
epreston and LinusBorg authored Nov 18, 2023
1 parent 6f5a28a commit 7ff2c5f
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
name: 'ci'
on:
workflow_dispatch:
push:
branches:
- '**'
pull_request:
branches:
- main

concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
build-and-typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2 #version is inferred from package.json's packageManager field

- name: Set node version to 20
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
Expand All @@ -33,13 +38,13 @@ jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Set node version to 20
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
Expand All @@ -52,18 +57,18 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Set node version to 20
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- run: pnpm install

- name: Lint codebase
run: pnpm run lint
run: pnpm run lint

0 comments on commit 7ff2c5f

Please sign in to comment.