Skip to content

Remove chromatic from release CI #995

Remove chromatic from release CI

Remove chromatic from release CI #995

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Tests
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the develop branch
on:
pull_request:
branches:
- develop
- main
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Tests:
# The type of runner that the job will run on
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
# 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
- name: Get current time
uses: josStorer/get-current-time@v2.0.2
id: current_time
with:
format: YYYYMMDD-HH
utcOffset: "+01:00"
# Checkout the repo
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
# Get commit message
- name: Print head git commit message
id: get_head_commit_message
run: echo "::set-output name=HEAD_COMMIT_MESSAGE::$(git show -s --format=%s)"
- uses: actions/setup-node@v3
with:
node-version: 22.19.0
- name: Preparing environment
id: setup_environment
run: npm install -g yarn
- name: Installing modules
id: install_modules
run: |
yarn cache clean
rm -rf node_modules
yarn install
- name: Running tests & linters
id: tests
run: yarn precheck
- name: Install Playwright Chromium
id: install_playwright
run: yarn playwright install --with-deps chromium
- name: Running Storybook interaction tests
id: story_tests
run: yarn test:stories
- name: Save release version to outputs
id: save_release_version
run: echo ::set-output name=version::$(node -pe "require('./package.json').version")
# Notify Discord if Success
- name: Discord notification success
uses: sarisia/actions-status-discord@v1
if: success()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: success
title: "Pull Request Checks Succeeded"
nodetail: true
avatar_url: "https://github.com/qoretechnologies/reqore/blob/ae8ce24b7f0984340bf4e6835025d203d1741b3a/public/q-symbol-small.png?raw=true"
username: "reQore"
color: 0x00FF00
description: |
:white_check_mark: PR checks for [PR](${{ github.event.pull_request.html_url }}) triggered by `${{ github.triggering_actor }}`` *succeeded*.
[Action](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) | [Storybook](${{ steps.chromatic_publish.outputs.storybookUrl }}) | [Chromatic Tests](${{ steps.chromatic_publish.outputs.buildUrl }})
# Notify discord if failure
- name: Discord notification failure
uses: sarisia/actions-status-discord@v1
if: failure()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: failure
title: "Pull Request Checks Failed"
nodetail: true
avatar_url: "https://github.com/qoretechnologies/reqore/blob/ae8ce24b7f0984340bf4e6835025d203d1741b3a/public/q-symbol-small.png?raw=true"
username: "reQore"
color: 0xFF0000
description: |
:exclamation: PR checks for [PR](${{ github.event.pull_request.html_url }}) triggered by `${{ github.triggering_actor }}`` *failed*.
[Action](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) | [Chromatic Tests](${{ steps.chromatic_publish.outputs.buildUrl }})