This repository has been archived by the owner on Dec 12, 2024. It is now read-only.
fix: Fix migr8 crashing on windows due to Unix path delimiters #175
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'CI' | |
on: | |
push: | |
branches: | |
- main | |
- release/** | |
pull_request: | |
# Cancel in progress workflows on pull_requests. | |
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Build & Test (Linux) | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out current commit | |
uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: 'package.json' | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Lint source files | |
run: pnpm lint | |
- name: Run tests | |
run: pnpm test | |
# Only run E2E tests on Wwindows | |
e2e-test-windows: | |
name: E2E test (Windows) | |
runs-on: windows-2019 | |
steps: | |
- name: Check out current commit | |
uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: 'package.json' | |
cache: pnpm | |
- name: Clean sh.exe | |
run: | | |
where sh | |
rm 'C:\Program Files\Git\usr\bin\sh.exe' | |
rm 'C:\Program Files\Git\bin\sh.exe' | |
shell: bash | |
- name: Install dependencies | |
shell: cmd | |
run: pnpm install | |
- name: Git | |
shell: cmd | |
run: git status | |
- name: Run e2e test | |
shell: cmd | |
run: pnpm test:e2e | |
artifacts: | |
name: Pack & Upload Artifacts | |
runs-on: ubuntu-20.04 | |
needs: test | |
if: ${{ startsWith(github.ref, 'refs/heads/release/') }} | |
steps: | |
- name: Check out current commit | |
uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: 'package.json' | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Pack | |
run: pnpm pack | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ github.sha }} | |
path: | | |
${{ github.workspace }}/*.tgz |