Skip to content

bcgov/anti-viral-self-assessment

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

npm install

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Accessibility

This package handles automated accessibility using the axe test runner

Run tests with a11y-test

Screenshots will be output into /a11y/results for each tested page.

Deployment

This project uses a mix of tagging and push triggered actions workflows to deploy to dev, test, or production

The steps to deploy the project are as follows:

  1. Make your changes locally on a branch from main
  2. "git add" and "git commit" your changes as normal
  3. Run "git log", and grab the hash of your commit. It should be the first entry
  4. Run "git tag -f -a <dev/test/prod> "
  5. Push your changes to your branch
  6. Open a Pull Request for your branch
  7. Allow the testing actions to complete and get someone to review your PR (if any of these fails, make changes and git add, commit, push)
  8. Once all tests have passed and the changes are approved, merge the code to main
  9. This will trigger a deployment that uses whichever tag you set (dev/test/prod) as the target environment

Note: you can run the unit tests on your local by running "npm test"