From 047fd65a2d3547bcf453fd9ccff0b1937a4d1d5b Mon Sep 17 00:00:00 2001 From: jiyuujin Date: Fri, 9 Feb 2024 21:46:20 +0900 Subject: [PATCH] actions setup --- .github/actions/install-packages/action.yml | 17 ++++++++++++++ .github/workflows/nodejs.yml | 26 +++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .github/actions/install-packages/action.yml create mode 100644 .github/workflows/nodejs.yml diff --git a/.github/actions/install-packages/action.yml b/.github/actions/install-packages/action.yml new file mode 100644 index 00000000..49f82838 --- /dev/null +++ b/.github/actions/install-packages/action.yml @@ -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 diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 00000000..af063ded --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -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