Skip to content

Commit

Permalink
chore: add test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
junha-ahn committed Oct 20, 2023
1 parent 35e6d5d commit eda6168
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test

on: push

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'

- name: check dependency cache
uses: actions/cache@v3
id: npm-cache
with:
path: ${{ github.workspace }}/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: install dependencies
if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm install

- name: Run Test
run: npm run test

0 comments on commit eda6168

Please sign in to comment.