Skip to content

Commit

Permalink
ci: conditionally run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fredriklindberg committed Jul 27, 2023
1 parent 1a774b0 commit b46d05d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
description: 'Publish container'
required: true
default: 'false'
run_tests:
description: 'Run tests'
required: true
default: 'true'

jobs:
build_and_test:
Expand All @@ -19,14 +23,14 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Run tests
run: |
yarn install --frozen-lockfile
yarn run test test
- name: Prepare builder
run: make builder.build

- name: Run tests
if: github.event.inputs.run_tests == 'true'
run: |
make test.container
- name: Build package
run: |
make package.build.container
Expand Down

0 comments on commit b46d05d

Please sign in to comment.