[CPDNPQ-2419] Fix some flakey tests (#2095) #1011
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rebuild flow visualisation | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3.4 | |
- name: Install gems | |
run: | | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
- name: Install yarn | |
run: npm install yarn -g | |
- name: Install Graphviz | |
run: sudo apt install graphviz | |
- run: mkdir -p tmp/visualisations | |
- name: Build visualisation | |
run: | | |
dot -v | |
bundle exec rails "registration_wizard:visualise[png]" | |
- name: Checkout wiki code | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{github.repository}}.wiki | |
path: markdown | |
- name: Push updated visualisation to repo Wiki | |
run: | | |
cp tmp/visualisations/registration_wizard_visualisation.png markdown/visualisations/registration_wizard_visualisation.png | |
cd markdown | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add visualisations/registration_wizard_visualisation.png | |
git diff-index --quiet HEAD || git commit -m "Update flow visualisation" && git push |