Skip to content

Commit

Permalink
ci: testing workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
nksaraf committed Jun 13, 2022
1 parent b4eaa28 commit 9665758
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 49 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,23 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v2

- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
# - name: Use Node.js 16
# uses: actions/setup-node@v3
# with:
# node-version: 16

- name: Install dependencies
run: |
npm install -g pnpm
pnpm install
npx playwright install
- run: |
cd ./fixtures/cloudflare-workers
pnpm run build
- name: Run tests
run: |
cd ./fixtures/cloudflare-workers
pnpm run test
# - name: Install dependencies
# run: |
# npm install -g pnpm
# pnpm install
# npx playwright install

# - run: |
# cd ./fixtures/cloudflare-workers
# pnpm run build

# - name: Run tests
# run: |
# cd ./fixtures/cloudflare-workers
# pnpm run test

87 changes: 56 additions & 31 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,66 @@
name: Test
# name: Test

# on:
# push:
# branches:
# - main
# pull_request:
# branches:
# - main

# jobs:
# test:
# name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }}
# runs-on: ${{ matrix.os }}
# env:
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
# TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
# OS: ${{ matrix.os }}
# NODE_VERSION: ${{ matrix.node_version }}
# strategy:
# matrix:
# node_version: ['17', '16']
# os: [ubuntu-latest, macOS-latest]

# steps:
# - name: Checkout Repo
# uses: actions/checkout@v2

# # - name: Use Node.js ${{ matrix.node_version }}
# # uses: actions/setup-node@v3
# # with:
# # node-version: ${{ matrix.node_version }}

# # - name: Install dependencies
# # run: |
# # npm install -g pnpm
# # pnpm install
# # npx playwright install

# # - name: Run tests
# # run: pnpm turbo run test --force

name: pnpm Example Workflow
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
OS: ${{ matrix.os }}
NODE_VERSION: ${{ matrix.node_version }}
build:
runs-on: ubuntu-20.04
strategy:
matrix:
node_version: ['17', '16']
os: [ubuntu-latest, macOS-latest]
node-version: [16]

steps:
- name: Checkout Repo
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}

- name: Install dependencies
run: |
npm install -g pnpm
pnpm install
npx playwright install
- name: Run tests
run: pnpm turbo run test --force
- uses: actions/checkout@v2
- uses: pnpm/[email protected]
with:
version: 7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install

0 comments on commit 9665758

Please sign in to comment.