Skip to content

Merge branch 'leaderboard-api' of https://github.com/CS3219-AY2324S1/… #568

Merge branch 'leaderboard-api' of https://github.com/CS3219-AY2324S1/…

Merge branch 'leaderboard-api' of https://github.com/CS3219-AY2324S1/… #568

Workflow file for this run

name: Continuous Integration
on:
push:
branches-ignore:
- gh-pages
env:
NODE_VER: '18.x'
JAVA_DISTRIBUTION: 'zulu'
JAVA_VER: 11
FIREBASE_AUTH_EMULATOR_HOST: "127:0:0:1:9099"
FIREBASE_TOKEN: ${{ secrets.FIREBASE_CI_TOKEN }}
FIREBASE_SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
PRISMA_DATABASE_URL: ${{ secrets.SYSTEMTEST_DATABASE_URL }}
PRISMA_DATABASE_PASSWORD: ${{ secrets.SYSTEMTEST_DATABASE_PASSWORD }}
NEXT_PUBLIC_FRONTEND_FIREBASE_CONFIG: ${{ secrets.FRONTEND_FIREBASE_CONFIG_DEV }}
jobs:
mainbuild:
name: CI on Ubuntu 22.04
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VER }}
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VER }}
- name: Install dependencies with immutable lockfile
run: yarn install --frozen-lockfile
- name: Run linting
run: |
yarn workspace admin-service lint
yarn workspace collaboration-service lint
yarn workspace frontend lint
yarn workspace gateway lint
yarn workspace matching-service lint
yarn workspace question-service lint
yarn workspace user-service lint
- name: Run unit tests
run: |
yarn workspace user-service test
yarn workspace admin-service test:ci
- name: Run system tests
run: |
yarn workspace user-service systemtest:ci
yarn workspace admin-service systemtest:ci
- name: Simulate production build
run: |
yarn workspace admin-service build
yarn workspace collaboration-service build
yarn workspace gateway build
yarn workspace matching-service build
yarn workspace question-service build
yarn workspace user-service build
yarn workspace frontend build