Skip to content

Loop properly

Loop properly #31

name: Build
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Install dependencies
run: npm install
- name: Run linting
run: npm run lint
- name: Build site
env:
BASE_URL: '${{ steps.pages.outputs.base_url }}'
run: npm run build
# TODO: re-enable if we have tests
#- name: Run tests
# run: npm test