Skip to content

Pre-release

Pre-release #82

Workflow file for this run

# Continuous integration, including test and integration test
name: Pre-release
# Run in master and dev branches and in all pull requests to those branches
on:
push:
branches: [ "release-*" ]
release:
types: [ published ]
jobs:
# Build and test the code
integration:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=.yarn/cache" >> $GITHUB_OUTPUT
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Cache
uses: actions/cache@v3
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-java-${{ hashFiles('**/build.gradle', '**/gradle.properties', '**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-java-
# Compile the code
- name: Install dependencies
run: |
yarn install
- name: Run full end to end tests
run: |
./src/test/bash/run-prod-e2e.sh
- name: Generate github pages
run: ./gradlew ghPages
if: startsWith(github.ref, 'refs/tags/')
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: startsWith(github.ref, 'refs/tags/')
with:
github_token: ${{ secrets.GITHUB_TOKEN }}