Skip to content

Instantly share code, notes, and snippets.

@indrajitbnikam
Created October 2, 2020 12:08
Show Gist options
  • Save indrajitbnikam/81a6f0b13725575d90f5ae229f5c2513 to your computer and use it in GitHub Desktop.
Save indrajitbnikam/81a6f0b13725575d90f5ae229f5c2513 to your computer and use it in GitHub Desktop.
Angular + Cypress e2e github workflow
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: End-to-End tests
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
steps:
- uses: actions/checkout@v2
# Sets up multiple Node.js environment specified as per array in matrix above
# This will result in running same workflow for different environments.
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install node-modules
run: npm ci
- name: Run e2e tests
run: npm run e2e:ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment