mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-27 20:36:33 -04:00
35 lines
676 B
YAML
35 lines
676 B
YAML
name: Test CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: 'npm'
|
|
- name: Setup Chrome
|
|
uses: browser-actions/setup-chrome@v2
|
|
id: setup-chrome
|
|
with:
|
|
install-dependencies: true
|
|
- run: npm install
|
|
- run: npm run build
|
|
- name: Run headless test
|
|
uses: coactions/setup-xvfb@v1
|
|
with:
|
|
run: npm run test-travis
|
|
env:
|
|
CHROME_BIN: ${{ steps.setup-chrome.outputs.chrome-path }}
|
|
|