Skip to content

Commit

Permalink
Create workflow.yml
Browse files Browse the repository at this point in the history
workflow file
  • Loading branch information
Isabeth7 authored Jun 30, 2024
1 parent 2d35aa5 commit 5a8221e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Unit Tests

on:
# the 1st condition
workflow_run: # triggers when "build" runs and completes
workflows: ["CI-CD"]
types:
- completed

jobs: # create job called "test" to perform Unit Tests
test:
runs-on: ubuntu-latest. # this job will run on the latest version of Ubuntu
steps: # list of steps that need to be taken when Unit Tests is triggered
- uses: actions/checkout@v3 # check out code from repository
- name: Install dependencies # install all dependencies needed for Unit Tests (ex. Jest)
run: npx yarn
- uses: actions/download-artifact@v3 # download compiled code from build and make it available for Unit Tests
with:
path: dist
- name: Run Tests # run Unit Tests using Jest
run: npx yarn test

0 comments on commit 5a8221e

Please sign in to comment.