Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 25 additions & 34 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,33 @@ name: Test Suite

on:
push:
branches: [ master ]
branches: [ "2.0" ]
pull_request:
branches: [ master ]

branches: [ "2.0" ]

jobs:
testing:
deterministic:
name: Deterministic non-browser gate
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 10

- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: Install
run: npm ci

- name: Elm test suite
run: npm run test

- uses: webfactory/ssh-agent@v0.2.0
with:
ssh-private-key: ${{ secrets.ELM_UI_TESTING_SSH_PRIVATE_KEY }}

- name: Rendering test suite on saucelabs
run: npm run test-render-sauce-automated -- --build=2.0.0 --name=development
env:
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
steps:
- uses: actions/checkout@v4

- name: Setup Node 22
uses: actions/setup-node@v4
with:
node-version: "22"

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: "1.4.2"

- name: Install (frozen lockfile)
run: bun install --frozen-lockfile

- name: Check generated artifacts are up to date
run: bun run stylesheet:check

- name: Run Elm tests
run: bun run test
692 changes: 692 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,21 @@
"version": "1.0.0",
"description": "Run the Elm UI benchmarks and render tests",
"main": "index.js",
"engines": {
"node": ">=22",
"bun": ">=1.4.2"
},
"packageManager": "bun@1.4.2",
"scripts": {
"test": "elm-test",
"test": "node --test stylesheets/build.test.js && elm-test",
"view-test": "node tests-rendering/automation/view.js",
"test-render": "node tests-rendering/automation/run.js --chrome",
"test-render-sauce": "source sauce.env; node tests-rendering/automation/run.js --sauce --headless",
"test-render-sauce-automated": "node tests-rendering/automation/run.js --sauce --headless",
"test-doc-preview": "bash tests-rendering/automation/doc-preview.sh",
"bench": "node benchmarks/runtime/index.js",
"list-issues": "hub issue -f \"%i,%U,%t,'%L'%n\" > issues.csv",
"stylesheet": "node stylesheets/build.js",
"stylesheet:check": "node stylesheets/build.js --check",
"docs": "elm make --docs docs.json",
"watch-stylesheet": "node stylesheets/build.js --watch",
"review": "elm-review src/Internal/Model2.elm",
Expand Down Expand Up @@ -40,7 +45,7 @@
"devDependencies": {
"@kachkaev/run-elm": "^3.0.0-beta.1",
"chokidar": "^3.4.2",
"elm-review": "^2.10.3",
"puppeteer": "^22.13.1"
"elm-review": "2.13.5",
"puppeteer": "22.13.1"
}
}
}
Loading
Loading