Skip to content

Commit

Permalink
💚 Add CI action
Browse files Browse the repository at this point in the history
  • Loading branch information
siguici committed Mar 23, 2024
1 parent 950f3f3 commit d7c7c55
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 2 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Tests

permissions:
contents: read

on: ['push', 'pull_request']

jobs:
ci:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
bun: [1.0]
php: [8.3]
vlang: [0.4]
experimental: [false]
name: 👷 CI BOSS on Bun-${{ matrix.bun }} under ${{ matrix.os }}

steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4

- name: 🎉 Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: ${{ matrix.bun }}

- name: ✨ Install JavaScript dependencies
run: bun install

- name: Setup V
uses: vlang/setup-v@v1.4
with:
version: ${{ matrix.version }}
stable: true
check-latest: true

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: ✅ Check code style
run: bun check

- name: 🧪 Test components
run: bun test

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
"./package.json": "./package.json"
},
"scripts": {
"check": "biome ci",
"ci": "biome ci .",
"check": "biome ci .",
"fix": "bun run format.fix && bun run lint.fix",
"format": "biome format .",
"format.fix": "biome format --write .",
Expand Down

0 comments on commit d7c7c55

Please sign in to comment.