Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 13 additions & 35 deletions .github/workflows/monkey-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:
on:
pull_request:
branches: [main]
types: [opened, synchronize]
types: [opened, reopened, synchronize, labeled, ready_for_review]

concurrency:
group: group-${{ github.ref }}-${{ github.workflow }}
Expand Down Expand Up @@ -88,19 +88,19 @@ jobs:
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-build-${{ env.cache-name }}-${{ hashFiles('pnpm-lock.yaml') }}
lookup-only: true

- if: ${{ steps.cache-pnpm.outputs.cache-hit != 'true' }}
- if: steps.cache-pnpm.outputs.cache-hit != 'true' || contains(github.event.pull_request.labels.*.name, 'refresh-ci-cache')
name: Full checkout
uses: actions/checkout@v4

- if: ${{ steps.cache-pnpm.outputs.cache-hit != 'true' }}
- if: steps.cache-pnpm.outputs.cache-hit != 'true' || contains(github.event.pull_request.labels.*.name, 'refresh-ci-cache')
name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- if: ${{ steps.cache-pnpm.outputs.cache-hit != 'true' }}
- if: steps.cache-pnpm.outputs.cache-hit != 'true' || contains(github.event.pull_request.labels.*.name, 'refresh-ci-cache')
name: Install dependencies
run: CI=true pnpm i --frozen-lockfile
run: CI=true pnpm install --frozen-lockfile

ci-be:
name: ci-be
Expand Down Expand Up @@ -138,9 +138,8 @@ jobs:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-build-${{ env.cache-name }}-${{ hashFiles('pnpm-lock.yaml') }}

- if: ${{ steps.cache-pnpm.outputs.cache-hit != 'true' }}
name: Install dependencies
run: CI=true pnpm i --frozen-lockfile
- name: Install dependencies
run: CI=true pnpm install --frozen-lockfile

- name: Check lint
run: npm run lint-fast-be && npm run lint-be
Expand Down Expand Up @@ -191,9 +190,8 @@ jobs:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-build-${{ env.cache-name }}-${{ hashFiles('pnpm-lock.yaml') }}

- if: ${{ steps.cache-pnpm.outputs.cache-hit != 'true' }}
name: Install dependencies
run: CI=true pnpm i --frozen-lockfile
- name: Install dependencies
run: CI=true pnpm install --frozen-lockfile

- name: Check lint
run: npm run lint-fast-fe && npm run lint-fe
Expand Down Expand Up @@ -258,9 +256,8 @@ jobs:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-build-${{ env.cache-name }}-${{ hashFiles('pnpm-lock.yaml') }}

- if: ${{ steps.cache-pnpm.outputs.cache-hit != 'true' }}
name: Install dependencies
run: CI=true pnpm i --frozen-lockfile
- name: Install dependencies
run: CI=true pnpm install --frozen-lockfile

- name: Lint styles
if: steps.filter.outputs.styles == 'true' || contains(github.event.pull_request.labels.*.name, 'force-full-ci')
Expand Down Expand Up @@ -317,9 +314,8 @@ jobs:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-build-${{ env.cache-name }}-${{ hashFiles('pnpm-lock.yaml') }}

- if: ${{ steps.cache-pnpm.outputs.cache-hit != 'true' }}
name: Install dependencies
run: CI=true pnpm i --frozen-lockfile
- name: Install dependencies
run: CI=true pnpm install --frozen-lockfile

- name: Check lint
run: npm run lint-fast-pkg && npm run lint-pkg
Expand All @@ -329,21 +325,3 @@ jobs:

- name: Test
run: npm run test-pkg

on-failure:
name: on-failure
runs-on: ubuntu-latest
needs: [ci-be, ci-fe, ci-assets, ci-pkg]
if: ${{ always() && contains(needs.*.result, 'failure') && github.ref != 'refs/heads/main' }}
steps:
- name: Save the PR number in an artifact
shell: bash
env:
PR_NUM: ${{ github.event.number }}
run: echo $PR_NUM > pr_num.txt

- name: Upload the PR number
uses: actions/upload-artifact@v4
with:
name: pr_num
path: ./pr_num.txt
7 changes: 1 addition & 6 deletions frontend/static/themes/rainbow_trail.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,7 @@ footer button:hover > .relative > i,
#restartTestButtonWithSameWordset:hover > i,
#nextTestButton:hover > i,
#practiseWordsButton:hover > i,
#watchReplayButton:hover > i,
footer a:hover,
footer a:hover > i,
footer button:hover,
footer button:hover > i,
footer button:hover > .relative > i {
#watchReplayButton:hover > i {
background: linear-gradient(
90deg,
#60b6ce,
Expand Down
Loading