Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add Windows CI Tests #173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Mar 28, 2025
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
9 changes: 9 additions & 0 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ on:
- closed
branches:
- main
paths:
- bin/**/*
- src/**/*
- .node-version
- package-lock.json
- package.json
- tsconfig.base.json
- tsconfig.eslint.json
- tsconfig.json
workflow_dispatch:

permissions:
Expand Down
58 changes: 35 additions & 23 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,13 @@ jobs:
id: test
run: npm run ci-test

test-typescript-esm-npm:
name: Test TypeScript ESM Template (npm)
runs-on: ubuntu-latest
typescript-esm-npm:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]

name: TypeScript ESM (npm)
runs-on: ${{ matrix.os }}

steps:
- name: Checkout @github/local-action
Expand Down Expand Up @@ -98,9 +102,13 @@ jobs:
run: npm run local-action
working-directory: typescript-action

test-javascript-esm-npm:
name: Test JavaScript ESM Template (npm)
runs-on: ubuntu-latest
javascript-esm-npm:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]

name: JavaScript ESM (npm)
runs-on: ${{ matrix.os }}

steps:
- name: Checkout @github/local-action
Expand Down Expand Up @@ -151,9 +159,13 @@ jobs:
run: npm run local-action
working-directory: javascript-action

test-typescript-esm-pnpm:
name: Test TypeScript ESM Template (pnpm)
runs-on: ubuntu-latest
typescript-esm-pnpm:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]

name: TypeScript ESM (pnpm)
runs-on: ${{ matrix.os }}

steps:
- name: Checkout @github/local-action
Expand Down Expand Up @@ -210,9 +222,13 @@ jobs:
run: pnpm run local-action
working-directory: typescript-pnpm-esm-action

test-typescript-cjs-pnpm:
name: Test TypeScript CJS Template (pnpm)
runs-on: ubuntu-latest
typescript-cjs-pnpm:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]

name: TypeScript CJS (pnpm)
runs-on: ${{ matrix.os }}

steps:
- name: Checkout @github/local-action
Expand Down Expand Up @@ -269,8 +285,8 @@ jobs:
run: pnpm run local-action
working-directory: typescript-pnpm-cjs-action

test-typescript-esm-yarn:
name: Test TypeScript ESM Template (yarn)
typescript-esm-yarn:
name: TypeScript ESM (yarn)
runs-on: ubuntu-latest

defaults:
Expand All @@ -292,13 +308,6 @@ jobs:
path: typescript-yarn-esm-action
repository: ncalteen/typescript-yarn-esm-action

- name: Set Yarn version
id: set-yarn
run: |
corepack enable
yarn set version stable
working-directory: typescript-yarn-esm-action

- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
Expand All @@ -314,7 +323,10 @@ jobs:

- name: Install TypeScript Template Dependencies
id: install-typescript
run: yarn install
run: |
corepack enable
corepack prepare [email protected] --activate
yarn install
working-directory: typescript-yarn-esm-action

- name: Link @github/local-action
Expand All @@ -330,6 +342,6 @@ jobs:
working-directory: typescript-yarn-esm-action

- name: Test TypeScript Action
id: test-typescript
id: test
run: yarn run local-action
working-directory: typescript-yarn-esm-action
Loading