Skip to content

SLAP SLAP SLAP

SLAP SLAP SLAP #44

Workflow file for this run

# This file was adapted from workflow files from the SE-EDU Brownfield
# Project: https://github.com/nus-cs2103-AY2324S1/tp and the CATcher Project:
# https://github.com/CATcher-org/CATcher
name: CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
node-version: [14.x]
runs-on: ${{ matrix.platform }}
steps:
- name: Set up repository
uses: actions/checkout@main
- name: Set up repository
uses: actions/checkout@main
with:
ref: main
- name: Merge to main
run: git checkout --progress --force ${{ github.sha }}
- name: Run repository-wide tests
if: runner.os == 'Linux'
working-directory: ${{ github.workspace }}/.github
run: ./run-checks.sh
- name: Install dependencies
run: npm install
- name: Run ESLint
run: npm run lint
- name: Run code tests
run: npm run test -- "--coverage"
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}