Skip to content

Commit

Permalink
ci configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
JRJurman committed Aug 19, 2024
1 parent 2794c3f commit ef058ad
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Tram-Deco Cypress Tests

on: push

jobs:
test:
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Dependency Directory
node_modules

# cypress artifacts
cypress/

# minified output
*.min.js
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"build": "uglifyjs tram-deco.js -o tram-deco.min.js -c -m",
"test-export": "node scripts/export-components.js example/spoiler-tag.html -o example/spoiler-tag.js",
"pretest": "npm run build && npm run test-export",
"test": "cypress open"
"test": "cypress open",
"pretest:ci": "npm run pretest",
"test:ci": "cypress run"
},
"keywords": [],
"author": {
Expand Down

0 comments on commit ef058ad

Please sign in to comment.