Skip to content

Commit

Permalink
Add basic CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
allmarkedup committed May 18, 2024
1 parent d3b1cce commit c509338
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
pull_request:
branches:
- v3
push:
branches:
- v3

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: nanasess/setup-chromedriver@v2
- run: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2.2"
bundler-cache: true

- name: Setup Node.js
uses: actions/setup-node@v2-beta
with:
node-version: "20.11.0"
check-latest: true

- name: Install NPM dependencies
run: npm install

- name: Run tests
run: bin/ci
3 changes: 3 additions & 0 deletions bin/ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

bin/test

0 comments on commit c509338

Please sign in to comment.