deterministic testing of protocol violations #1081
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: hyperfiddle/electric | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
jobs: | |
jvm: | |
name: Run JVM tests | |
runs-on: [ubuntu-latest] | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/[email protected] | |
- run: git status | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Cache local Maven repository | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/deps.edn') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Install clojure tools | |
uses: DeLaGuardo/[email protected] | |
with: | |
cli: 1.11.1.1113 | |
- name: Run tests | |
run: ./ci/run_tests_jvm.sh | |
browser: | |
name: Run browser tests | |
runs-on: [ubuntu-latest] | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/[email protected] | |
- run: git status | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Cache local Maven repository | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/deps.edn') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Install clojure tools | |
uses: DeLaGuardo/[email protected] | |
with: | |
cli: 1.11.1.1113 | |
- name: Use Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 18.x | |
- name: NPM install | |
run: npm install --include=dev | |
# Install chrome and dependencies, puppeteer fails otherwise | |
- run: sudo apt-get update && sudo apt-get install -y wget gnupg | |
- run: wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
- run: sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' | |
- run: sudo apt-get update && sudo apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 --no-install-recommends | |
# - run: rm -rf /var/lib/apt/lists/* | |
- name: Run Tests | |
run: ./ci/run_tests_browser.sh | |
nodejs: | |
name: Run NodeJS tests | |
runs-on: [ubuntu-latest] | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/[email protected] | |
- run: git status | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Cache local Maven repository | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/deps.edn') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Install clojure tools | |
uses: DeLaGuardo/[email protected] | |
with: | |
cli: 1.11.1.1113 | |
- name: Use Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 18.x | |
- name: NPM install | |
run: npm install | |
- name: Run Tests | |
run: ./ci/run_tests_node.sh |