Skip to content

Commit

Permalink
actions setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyuujin committed Feb 9, 2024
1 parent 29a8dc2 commit 047fd65
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/actions/install-packages/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
runs:
using: 'Composite'
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- uses: oven-sh/setup-bun@v1
name: Install bun
id: bun-install
with:
bun-version: 1.0.25

- name: Install dependencies
run: bun install
shell: bash
26 changes: 26 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Node.js CI

on:
# push:
# branches:
# - main
pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.17.0]

steps:
- uses: actions/checkout@v4

- name: Install packages
uses: ./.github/actions/install-packages

- name: Lint check
run: bun lint

0 comments on commit 047fd65

Please sign in to comment.