Skip to content

Commit

Permalink
ci: test build
Browse files Browse the repository at this point in the history
  • Loading branch information
VChet committed Dec 10, 2023
1 parent 6c115b7 commit 095118b
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/eslint.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: test

on:
push:
branches:
- master
- dev
pull_request:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
- run: npm ci
- run: npm run lint
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["18", "20"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- name: Cache node_modules
uses: actions/cache@v2
with:
path: |
~/.npm
~/.cache
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node-version }}-
- run: npm build

0 comments on commit 095118b

Please sign in to comment.