Skip to content

Commit

Permalink
Prepared template to be migrated to Serenity/JS v3
Browse files Browse the repository at this point in the history
re #187
  • Loading branch information
jan-molak committed May 5, 2022
1 parent 9512edc commit 725af64
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/build.yml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: build

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]
types: [ opened, synchronize ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 12.x, 14.x, 16.x ]
node-version: [ 14.x, 16.x ]

steps:
- uses: actions/checkout@v3
Expand All @@ -28,10 +28,12 @@ jobs:
- run: npm test
env:
CI: true
- name: GitHub Pages
uses: JamesIves/[email protected]
if: matrix.node-version == '16.x' && github.ref == 'refs/heads/master'
with:
BRANCH: gh-pages
FOLDER: target/site/serenity
CLEAN: true

# todo: publish 3.x reports when Serenity/JS 2.x reaches EOL and we switch to v3
# - name: GitHub Pages
# uses: JamesIves/[email protected]
# if: matrix.node-version == '16.x' && github.ref == 'refs/heads/master'
# with:
# BRANCH: gh-pages
# FOLDER: target/site/serenity
# CLEAN: true

0 comments on commit 725af64

Please sign in to comment.