Skip to content

r: remove dead/unused code from mirror #77

r: remove dead/unused code from mirror

r: remove dead/unused code from mirror #77

# This workflow will run tests using node whenever a commit is pushed to develop or main
# For more information see: https://docs.github.com/en/actions/using-workflows/about-workflows
name: CI
on:
push:
# List all branches that shall be tested and are not protected by requiring pull requests to commit to.
branches:
- "develop"
- "main"
jobs:
protect:
name: Protect stable
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: "16"
cache: "yarn"
cache-dependency-path: "**/yarn.lock"
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: |
node_modules
packages/addons/node_modules
packages/cli/node_modules
packages/client/node_modules
packages/server/node_modules
packages/shared/node_modules
packages/test/node_modules
key: ${{ runner.os }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install YARN dependencies
if: steps.cache-npm.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
- name: Set up JDK
uses: actions/setup-java@v3
with:
cache: "maven"
java-version: "8.0.332+9"
distribution: "temurin"
- name: Install MAVEN dependencies
run: mvn dependency:resolve -B -U
- name: lint
run: yarn lint
- name: test
run: yarn test:ci
- name: build
run: yarn build
- name: E2E tests
run: yarn test:e2e