Skip to content

RHCLOUD-36016: Add workspaces integration test to source tree #336

RHCLOUD-36016: Add workspaces integration test to source tree

RHCLOUD-36016: Add workspaces integration test to source tree #336

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: nrwl/nx-set-shas@v4
# cache node modules for all jobs to use
- uses: './.github/actions/node-cache'
# cache cypress runner
- uses: './.github/actions/cypress-cache'
- name: Install deps
run: npm ci
lint:
needs: [install]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: './.github/actions/lint'
test:
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: './.github/actions/test-unit'
integration:
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: './.github/actions/test-integration'
build:
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: nrwl/nx-set-shas@v4
- uses: './.github/actions/node-cache'
- name: Install deps
run: npm i
- name: Build affected
env:
NX_SKIP_NX_CACHE: true
run: npx nx affected -t build --exclude=@redhat-cloud-services/CLIENTNAME-client
release:
runs-on: ubuntu-latest
needs: [install, lint, test, build]
if: github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: ${{ secrets.BOT_SSH_KEY}}
- uses: './.github/actions/release'
with:
gh_token: ${{ secrets.BOT_GH_TOKEN }}
npm_token: ${{ secrets.NPM_TOKEN }}
gh_name: ${{ secrets.GH_NAME }}
gh_email: ${{ secrets.GH_EMAIL }}