cypress github action testing #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: Tram-Deco Cypress Tests | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
types: | ||
- labeled | ||
jobs: | ||
test: | ||
if: github.event.pull_request.labels.*.name contains 'ci' | ||
Check failure on line 16 in .github/workflows/cypress.yml GitHub Actions / Tram-Deco Cypress TestsInvalid workflow file
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '19' | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Run tests | ||
run: npm test:ci |