Created
July 26, 2020 19:58
-
-
Save allbarbos/9a517bb5a53554f3fe60d4da850a7809 to your computer and use it in GitHub Desktop.
Github Actions Cypress
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
# .github/workflows/tests.yml | |
name: Tests | |
on: [pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js 12.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '12.x' | |
- name: Install packages | |
run: npm install | |
env: | |
JFROG_API_KEY: ${{ secrets.JFROG_API_KEY }} | |
JFROG_USERNAME: ${{ secrets.JFROG_USERNAME }} | |
JFROG_EMAIL: ${{ secrets.JFROG_USERNAME }} | |
- name: E2E testing | |
uses: cypress-io/github-action@v1 | |
with: | |
install: false | |
build: npm build | |
start: npm start | |
browser: chrome | |
headless: true | |
env: | |
JFROG_API_KEY: ${{ secrets.JFROG_API_KEY }} | |
JFROG_USERNAME: ${{ secrets.JFROG_USERNAME }} | |
JFROG_EMAIL: ${{ secrets.JFROG_USERNAME }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment