Skip to content

Commit

Permalink
Merge pull request #101 from chvmvd/add-build-test-github-actions
Browse files Browse the repository at this point in the history
Add Build Test GitHub Actions
  • Loading branch information
chvmvd authored Dec 10, 2022
2 parents 29ad95b + 038538a commit 5195e4f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Build Test

on:
pull_request:
branches: [main, master]

jobs:
build-test:
name: Build Test
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: latest

- name: Cache Node Modules
uses: actions/cache@v3
id: node_modules_cache_id
with:
path: "**/node_modules"
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}

- name: Install Node Modules
if: steps.node_modules_cache_id.outputs.cache-hit != 'true'
run: npm ci

- name: Build Test
run: npm run build

0 comments on commit 5195e4f

Please sign in to comment.