Skip to content

Merge branch 'production' into development #488

Merge branch 'production' into development

Merge branch 'production' into development #488

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Run Build and Unit Tests
on:
push:
branches: ["development"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm run build
- name: Build Using Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: Static-Site
path: public/neurodiversity-main/
- run: npm run-script coverage
- uses: actions/upload-artifact@v3
with:
name: Coverage Report
path: coverage/neurodiversity-main/
- uses: actions/download-artifact@master
with:
name: Coverage Report
path: .
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d-%H-%M-%S')"