Skip to content

Commit

Permalink
Add ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-at-brightnight committed May 29, 2024
1 parent bfdf160 commit 6e3495a
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI/CD

on:
push:
branches:
- '**'

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: '20.12.0'
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Install and test
run: |
npm install
npm test
# publish:
# runs-on: ubuntu-latest
# needs: [ tests ]
# if: github.ref == 'refs/heads/main'
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v2
# with:
# node-version: '20.12.0'
# - name: Build
# run: npm run build
# - name: Publish
# run:

0 comments on commit 6e3495a

Please sign in to comment.