Skip to content

Commit

Permalink
chore(root): remove macos from tests and jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoazh committed Jan 3, 2025
1 parent 9782a58 commit 418dce3
Showing 1 changed file with 4 additions and 33 deletions.
37 changes: 4 additions & 33 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
cache-and-install:
runs-on: macos-latest
runs-on: linux-latest

steps:
- name: Checkout
Expand All @@ -35,7 +35,7 @@ jobs:

build:
name: Build Project
runs-on: macos-latest
runs-on: linux-latest
needs: [cache-and-install]

steps:
Expand Down Expand Up @@ -71,36 +71,7 @@ jobs:

strategy:
matrix:
os: [macos-latest, ubuntu-latest]
node-version: [18.x, 20.x, 22.x]
test-plan: [test, "test:e2e"]

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: pnpm install
- name: Create env file
run: |
touch ./packages/v3/cypress/runner/.env
echo VITE_GOOGLE_API_KEY=${{ secrets.VITE_GOOGLE_API_KEY }} >> ./packages/v3/cypress/runner/.env
- name: Run Test Plan
run: pnpm run ${{ matrix.test-plan }}

test-for-windows:
name: Test project on windows
runs-on: windows-latest
needs: [cache-and-install, build]

strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [18.x, 20.x, 22.x]
test-plan: [test, "test:e2e"]

Expand All @@ -125,7 +96,7 @@ jobs:

publish:
name: NPM publish
runs-on: macos-latest
runs-on: linux-latest
needs: [cache-and-install, build, test]
if: ${{ github.ref == 'refs/heads/master'}}

Expand Down

0 comments on commit 418dce3

Please sign in to comment.