From 58b8026ff53e8bb4bbbeb39d476510f67fb071cc Mon Sep 17 00:00:00 2001 From: Seb-sti1 <65665540+Seb-sti1@users.noreply.github.com> Date: Sat, 2 Sep 2023 16:28:17 +0200 Subject: [PATCH] Create CI --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..879357ae --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +name: Build & Test + +# For every push and pull_request +on: [push, pull_request] + +jobs: + backend: + # use Ubuntu 22.04 + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + # Install Node 18 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: 18.x + - run: cd backend + - run: npm ci + - run: npm run build + - run: npm run test + frontend: + # use Ubuntu 22.04 + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + # Install Node 18 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: 18.x + - run: cd frontend + - run: npm ci + - run: npm run build + - run: npm run test