Skip to content

Commit

Permalink
ci: update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVolland committed Sep 12, 2024
1 parent 70ad367 commit e314db0
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 77 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v4
with:
configFile: .commitlintrc.js
configFile: .commitlintrc.cjs
30 changes: 7 additions & 23 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,21 @@ jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x]

steps:
- name: Checkout sources
uses: actions/checkout@v4

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

- name: Cache Node.js modules 💾
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Use bun
uses: oven-sh/setup-bun@v1

- name: Install dependencies ⏬
run: npm install
run: bun install

- name: Lint code 💄
run: npm run lint

- name: Build artifacts 🏗️
run: npm run build
run: bun run lint

- name: Test code ✅
run: npm run test
run: bun run test

- name: Build artifacts 🏗️
run: bun run build
29 changes: 29 additions & 0 deletions .github/workflows/on-push-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test Push to Master

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Use bun
uses: oven-sh/setup-bun@v1

- name: Install dependencies ⏬
run: bun install

- name: Lint code 💄
run: bun run lint

- name: Test code ✅
run: bun run test

- name: Build artifacts 🏗️
run: bun run build
46 changes: 0 additions & 46 deletions .github/workflows/on-push-master.yml

This file was deleted.

8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ jobs:
- name: Checkout sources 🔰
uses: actions/checkout@v4

- name: Setup Node.js 18 👷🏻
uses: actions/setup-node@v4
with:
node-version: 18
- name: Use bun
uses: oven-sh/setup-bun@v1

- name: Install dependencies ⏬
run: npm ci
run: bun install

- name: Release 🚀
uses: cycjimmy/[email protected]
Expand Down
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
"npm": ">=6.0.0"
},
"devDependencies": {
"@commitlint/cli": "^17.6.5",
"@commitlint/config-conventional": "^17.6.5",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
Expand Down

0 comments on commit e314db0

Please sign in to comment.