Skip to content

Commit

Permalink
upd: without common_setup
Browse files Browse the repository at this point in the history
  • Loading branch information
DevTeaLeaf committed Jul 20, 2024
1 parent be5efcf commit 32fbfe2
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 120 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/0_common-setup.yml

This file was deleted.

34 changes: 7 additions & 27 deletions .github/workflows/1_lint.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,3 @@
# name: ESLint Check

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

# jobs:
# lint:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: lts/*
# - name: Install dependencies
# run: |
# yarn add eslint eslint-plugin-astro @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-prettier astro-eslint-parser --dev
# - name: Run ESLint
# run: yarn lint
# timeout-minutes: 20

name: ESLint Check

on:
Expand All @@ -32,11 +9,14 @@ on:
jobs:
lint:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Use common setup
uses: ./.github/workflows/0_common-setup.yml

- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: |
yarn add eslint eslint-plugin-astro @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-prettier astro-eslint-parser --dev
- name: Run ESLint
run: yarn lint
timeout-minutes: 20
34 changes: 7 additions & 27 deletions .github/workflows/2_unit.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,19 @@
# name: Unit Tests(Vitest)
# on:
# push:
# branches: [main, master]
# pull_request:
# branches: [main, master]
# jobs:
# test:
# timeout-minutes: 60
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: lts/*
# - name: Install dependencies
# run: yarn install
# - name: Run vitest
# run: yarn test:unit

name: Unit Tests (Vitest)

name: Unit Tests(Vitest)
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
needs: setup
steps:
- name: Use common setup
uses: ./.github/workflows/0_common-setup.yml

- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: yarn install
- name: Run vitest
run: yarn test:unit
42 changes: 7 additions & 35 deletions .github/workflows/3_e2e.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,20 @@
# name: End-to-End Tests(Playwright)
# on:
# push:
# branches: [main, master]
# pull_request:
# branches: [main, master]
# jobs:
# test:
# timeout-minutes: 60
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: lts/*
# - name: Install dependencies
# run: yarn install
# - name: Install Playwright Browsers
# run: yarn playwright install --with-deps
# - name: Run Playwright tests
# run: yarn test:e2e
# - uses: actions/upload-artifact@v4
# if: always()
# with:
# name: playwright-report
# path: playwright-report/
# retention-days: 30

name: End-to-End Tests (Playwright)

name: End-to-End Tests(Playwright)
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
needs: setup
steps:
- name: Use common setup
uses: ./.github/workflows/0_common-setup.yml

- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: yarn install
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Run Playwright tests
Expand Down

0 comments on commit 32fbfe2

Please sign in to comment.