Skip to content

Commit

Permalink
Merge pull request #2 from Ryun1/feat-basic-actions
Browse files Browse the repository at this point in the history
feat add basic workflow
  • Loading branch information
Ryun1 authored May 21, 2024
2 parents 6dcc3d4 + 0d58888 commit 192a48a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/run-examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Run Examples

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- name: Run all examples
run: |
for file in examples/*.js; do
node "$file"
done

0 comments on commit 192a48a

Please sign in to comment.