Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

Commit

Permalink
chore(ci): Add workflow from @sweet-side-of-sweden.
Browse files Browse the repository at this point in the history
  • Loading branch information
filiphsps authored Aug 6, 2023
1 parent 855492b commit bc5a581
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 🧠 CI

on:
push:
paths-ignore:
- '**.md'

jobs:
test:
name: 🔬 Test
timeout-minutes: 10
runs-on: ubuntu-latest
env:
CI: true
steps:
- name: 🕶️ Checkout repository
uses: actions/checkout@v3

- name: 🏎️ Setup nodejs
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: 'npm'

- name: 💾 Cache node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-test-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-test-
- name: 📦 Download dependencies
run: npm ci

- name: 🧪 Test
run: npm run test

0 comments on commit bc5a581

Please sign in to comment.