Updates to the readme #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: website-test-deployment | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test-deploy: | |
name: Test deployment | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
working-directory: website | |
steps: | |
# Use the latest version of checkout action | |
- uses: actions/checkout@v3 # Updated from v2 to v3 | |
# Use the latest setup-node action and specify Node.js 18 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: npm | |
cache-dependency-path: website/package-lock.json | |
# Install dependencies using npm install (to ensure package-lock.json is consistent) | |
- name: Install dependencies | |
run: npm install # Use npm install if lockfile needs syncing | |
# Test the build process to ensure the website can be built successfully | |
- name: Test build website | |
run: npm run build |