Skip to content

Commit

Permalink
Add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
threepointone committed Jan 18, 2024
1 parent 65f8c00 commit 6b8e81b
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Pull Request

on: pull_request

jobs:
check:
timeout-minutes: 5
strategy:
matrix:
os: [
ubuntu-latest,
# windows-latest,
# macos-latest,
]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"

- run: npm ci
- run: npm run check
30 changes: 30 additions & 0 deletions .github/workflows/push-to-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Push To Main

on:
push:
branches:
- main

jobs:
check:
timeout-minutes: 5
strategy:
matrix:
os: [
ubuntu-latest,
# windows-latest,
# macos-latest,
]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"

- run: npm ci
- run: npm run check

0 comments on commit 6b8e81b

Please sign in to comment.