Skip to content

Commit

Permalink
🤖 Ai workflow improvement suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario-SO committed Dec 30, 2024
1 parent cf2df13 commit 2209c5e
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build server

on:
push:
branches: [develop, main]
branches: [main, develop]

jobs:
prepare-env:
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@ name: Generate assets
on:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16.x'
- run: yarn install
node-version: '20'
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn run:generate
31 changes: 22 additions & 9 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
name: Playwright Tests with Dependency and Artifact Caching
name: Playwright Tests

on:
# push:
# branches: [develop, main]
# pull_request:
# branches: [develop, main]
push:
branches: [develop, main]
pull_request:
branches: [develop, main]

# Prevent multiple runs of the same workflow on the same ref
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
install:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -17,11 +23,18 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "20"
cache: 'yarn'

- name: Install yarn and dependencies
run: |
npm install -g yarn
yarn install
- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Cache Playwright browsers
uses: actions/cache@v3
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
playwright-${{ runner.os }}-
- name: Install Playwright browsers
run: yarn playwright install --with-deps
Expand Down
20 changes: 15 additions & 5 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,34 @@
name: Prettier


on:
pull_request:
branches: [main, develop]
push:
branches: [main, develop]

# Prevent multiple runs of the same workflow on the same ref
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check-prettier:
format:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'yarn'
- name: Install dependencies
run: yarn
- name: Check code formatting
run: yarn prettier:check
run: yarn install --frozen-lockfile
- name: Format code with Prettier
run: yarn prettier:fix
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: format code with prettier"
branch: ${{ github.head_ref }}

0 comments on commit 2209c5e

Please sign in to comment.