Repository navigation
test: check the pull request commit on real GitHub checkouts #38
Workflow file for this run
This file contains hidden or 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: Run gha e2e | |
| uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 16 | |
| - run: npm ci | |
| - run: | | |
| cp .github/workflows/event.json /home/runner/work/_temp/_github_workflow/event.json | |
| npm run gha-e2e |