Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
agentcooper committed Jul 9, 2024
1 parent 886739f commit c6e1a6b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 56 deletions.
56 changes: 27 additions & 29 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,35 @@
name: Node CI

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

branches: [ main ]
jobs:
build:
timeout-minutes: 60
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm ci
npm run build
npm test
env:
CI: true
- name: Deploy
if: ${{ github.ref == 'refs/heads/main' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./example/dist
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run build
run: npm run build
- name: Run tests
run: npm test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Deploy
if: ${{ github.ref == 'refs/heads/main' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./example/dist
27 changes: 0 additions & 27 deletions .github/workflows/playwright.yml

This file was deleted.

0 comments on commit c6e1a6b

Please sign in to comment.