Skip to content

Commit

Permalink
Simplify CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Murderlon committed Oct 2, 2024
1 parent df50629 commit 7d518ab
Showing 1 changed file with 23 additions and 52 deletions.
75 changes: 23 additions & 52 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
name: 💿 Main
name: CI
on:
push:
branches:
- main
- dev
pull_request: {}

permissions:
actions: write
contents: read
branches: [main]
pull_request_target:
types: [opened, synchronize, reopened]
paths-ignore:
- "**.md"
pull_request:
types: [opened, synchronize, reopened]
paths:
- .github/workflows/ci.yml

concurrency: ${{ github.workflow }}--${{ github.ref }}

jobs:
lint:
name: ⬣ ESLint
main:
name: Node.js LTS
runs-on: ubuntu-latest

steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
Expand All @@ -24,55 +28,22 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
node-version: lts/*

- name: Install Dependencies
uses: oven-sh/setup-bun@v2

- name: Check formatting
- name: Install
run: bun install

- name: Format
run: bun run format:check

- name: Run Lint
- name: Lint
run: bun run lint

typecheck:
name: ʦ TypeScript
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]

- name: Checkout Repository
uses: actions/[email protected]

- name: Setup Node
uses: actions/[email protected]
with:
node-version: 20

- name: Install Dependencies
uses: oven-sh/setup-bun@v2

- name: Run Typechecking
- name: Typecheck
run: bun run typecheck

vitest:
name: ⚡ Vitest
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]

- name: Checkout Repository
uses: actions/[email protected]

- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 20

- name: Install Dependencies
uses: oven-sh/setup-bun@v2

- name: Run Vitest
- name: Test
run: bun run test

0 comments on commit 7d518ab

Please sign in to comment.