feat(ci): added e2e test for gha event data #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test and Release (if master) | |
on: push | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm ci | |
- run: npm test | |
# - if: github.ref == 'refs/heads/master' | |
# run: npm run semantic-release | |
gha: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Copy event file | |
- run: cp ./event.json /home/runner/work/_temp/_github_workflow/event.json | |
- name: Run gha e2e | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm run gha-e2e |