Build: Enable GitHub CI #1
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: Browsers | |
on: | |
push: | |
branches: | |
- main | |
# Or manually | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
if: ${{ github.repository == 'js-reporters/js-reporters' }} # skip on forks, needs secret | |
steps: | |
- uses: actions/checkout@v4 | |
- run: npm install | |
- run: npm run lint | |
- run: npm run test-browser-sauce | |
env: | |
SAUCE_USERNAME: "${{ secrets.SAUCE_USERNAME }}" | |
SAUCE_REGION: "${{ secrets.SAUCE_REGION }}" | |
SAUCE_ACCESS_KEY: "${{ secrets.SAUCE_ACCESS_KEY }}" |