Skip to content

Beta release workflow #69

Beta release workflow

Beta release workflow #69

Workflow file for this run

name: Faucet Tests
on:
push:
branches: [main]
workflow_dispatch:
pull_request:
types: [ready_for_review]
workflow_call:
inputs:
git_ref:
description: 'Git ref to checkout (branch, tag, or commit SHA)'
required: true
type: string
run_faucet_tests:
description: 'Run faucet tests job'
required: false
type: boolean
default: true
jobs:
faucet-test:
if: ${{ github.event_name != 'workflow_dispatch' || inputs.run_faucet_tests != false }}
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
max-parallel: 1
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref || github.ref }}
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Setup npm version 10
run: |
npm i -g npm@10 --registry=https://registry.npmjs.org
- name: Cache node modules
id: cache-nodemodules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-deps-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-deps-${{ matrix.node-version }}-
- name: Install Dependencies
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: npm ci
- name: Build
run: npm run build
- name: Run Faucet Tests
run: npm run test:faucet