Skip to content

Commit

Permalink
build: refine build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma authored Nov 14, 2023
1 parent c976922 commit 9d64e12
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 67 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Build

on:
push:
pull_request:

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4

- name: Cache Yarn dependencies
uses: ./.github/actions/cache
with:
os: ${{ runner.os }}

- name: Install dependencies
run: yarn install

- name: Lint JavaScript
run: yarn lint

build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4

- name: Cache Yarn dependencies
uses: ./.github/actions/cache
with:
os: ${{ runner.os }}

- name: Install dependencies
run: yarn install

- name: Lint JavaScript
run: yarn build

test:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
version: [18, 20]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.version }}

- name: Cache Yarn dependencies
uses: ./.github/actions/cache
with:
os: ${{ runner.os }}

- name: Install dependencies
run: yarn install

- name: Test
run: yarn test
32 changes: 0 additions & 32 deletions .github/workflows/lint.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 9d64e12

Please sign in to comment.