Skip to content

Commit

Permalink
updates workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoputzer committed Sep 27, 2023
1 parent fa371fb commit 8ba1321
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Deploy to GitHub Pages
on:
workflow_dispatch:
push:
branches: [ $default-branch ]
# todo: this should somehow be triggered if tests pass, which is another workflow (pr could trigger tests -> then merge -> then deploy)
branches: [main] # todo: this should somehow be triggered only if test passes, which is another workflow though... this could just be a continuation of a previous job!
workflow_dispatch:
permissions:
contents: read
pages: write
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: Test
on:
workflow_dispatch:
push:
branches: [ $default-branch ]
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3 # https://github.com/actions/checkout
- uses: actions/setup-node@v3 # https://github.com/actions/setup-node
with:
cache: 'npm'
check-latest: true
node-version-file: '.node-version'
cache: 'npm'
- run: npm ci
- run: npm test

0 comments on commit 8ba1321

Please sign in to comment.