Skip to content

Commit

Permalink
Create test-every-push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mun-jihye authored May 29, 2024
1 parent 3502e6c commit 4830273
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test-every-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 'test-every-push'

on: push

jobs:
test:
name: Test lint, tsc, build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2

- name: Cache node modules
uses: actions/cache@v2
id: cache
with:
path: node_modules
key: npm-packages-${{ hashFiles('**/package-lock.json') }}

- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm install

- run: npm run lint
if: ${{ always() }}
- run: npm run tsc
if: ${{ always() }}
- run: npm run build
if: ${{ always() }}

0 comments on commit 4830273

Please sign in to comment.