Skip to content

Commit

Permalink
ci: add ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tooniez committed Aug 28, 2024
1 parent 3a7a401 commit 8987bba
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test and Publish Cucumber Report

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '14'

- name: Install dependencies
run: npm ci

- name: Run tests and generate Cucumber report
run: npm test

- name: Generate Cucumber report
run: npm run generate:report

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'cucumber_report.html'

- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 8987bba

Please sign in to comment.