Skip to content

Commit

Permalink
Add unit tests to deployment pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jantoun-scottlogic committed May 22, 2024
1 parent 81da3f7 commit ce8e71f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,23 @@ jobs:
with:
path: ./dist/tech-carbon-estimator

unit_tests:
needs: build
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/actions/set-up-environment
- name: Run tests
run: npm test

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
needs: unit_tests
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit ce8e71f

Please sign in to comment.