Skip to content

Commit

Permalink
Added gitHub Actions workflow configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliviier-dev committed Mar 17, 2024
1 parent c96c310 commit 3acc9e0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: My Brand Node.js CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "18.x"

- name: Install dependencies
run: npm install

- name: Run Jest tests
run: npm test
env:
ADMIN_EMAIL: ${{ secrets. ADMIN_EMAIL }}
JWT_SECRET: ${{ secrets. JWT_SECRET }}
MONGO_URI: ${{ secrets. MONGO_URI }}
PORT: ${{ secrets. PORT }}

0 comments on commit 3acc9e0

Please sign in to comment.