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

Commit

Permalink
Merge pull request #69 from SE-TINF22B2/dev/actions
Browse files Browse the repository at this point in the history
Add proper actions to verify that backend and frontend are working on main
  • Loading branch information
benedictweis authored Apr 2, 2024
2 parents 2f47ca3 + e93aa8c commit e32c9fd
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 22 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,26 @@

name: Backend

on: workflow_dispatch
on:
push:
branches:
- main

jobs:
echo:

build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Test
run: echo "hi"
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Run tests
run: npm test
29 changes: 18 additions & 11 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,26 @@

name: Frontend

on: workflow_dispatch
on:
push:
branches:
- main

jobs:
echo:

build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Test
run: echo "hi"
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Run tests
run: npm test

0 comments on commit e32c9fd

Please sign in to comment.