Skip to content

Commit

Permalink
feat(ci): added ci
Browse files Browse the repository at this point in the history
  • Loading branch information
saulonunesdev committed Nov 25, 2023
1 parent 30dd337 commit 9335a97
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]

jobs:
tests:
runs-on: ubuntu-latest
name: Tests on Node 18
steps:
- name: "Checkout"
uses: actions/checkout@v3

- name: Set Node.js
uses: actions/setup-node@v3.5.1
with:
node-version: "18"
registry-url: https://npm.pkg.github.com
cache-dependency-path: package-lock.json
env:
RUNNER_TEMP: "/tmp/"

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

- name: Run Tests
run: npm test

0 comments on commit 9335a97

Please sign in to comment.