Skip to content

Commit

Permalink
Create main.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Pudochu authored Jul 4, 2024
1 parent 2793d46 commit ac77bf8
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: WebFreeze CI

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

jobs:
build:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Puppeteer dependencies
run: sudo apt-get install -y libgbm-dev
- name: Run linter
run: npm run lint || echo "Linting failed but continuing..."
- name: Run tests
run: npm test || echo "No tests specified"

0 comments on commit ac77bf8

Please sign in to comment.