Skip to content

Commit

Permalink
chore: set taprc for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Sep 20, 2022
1 parent 81982f1 commit 8d18199
Show file tree
Hide file tree
Showing 11 changed files with 49 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
run:
shell: bash
steps:
- name: Support Long Pathsg
- name: Support Long Paths
if: matrix.platform.os == 'windows-latest'
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@v3
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ jobs:
# need to create a GitHub that would create on-demand tokens.
# https://github.com/LouisBrunner/checks-action/issues/18
# details_url:
- name: Support Long Pathsg
- name: Support Long Paths
if: matrix.platform.os == 'windows-latest'
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -110,7 +111,8 @@ jobs:
# need to create a GitHub that would create on-demand tokens.
# https://github.com/LouisBrunner/checks-action/issues/18
# details_url:
- name: Support Long Pathsg
- name: Support Long Paths
if: matrix.platform.os == 'windows-latest'
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -146,6 +148,8 @@ jobs:
run: npm i --ignore-scripts --no-audit --no-fund
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Set Tap RC
run: node ./test/fixtures/taprc.js
- name: Test
run: npm test --ignore-scripts -ws -iwr --if-present
- name: Conclude Check
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:
run:
shell: bash
steps:
- name: Support Long Pathsg
- name: Support Long Paths
if: matrix.platform.os == 'windows-latest'
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -72,7 +73,8 @@ jobs:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Support Long Pathsg
- name: Support Long Paths
if: matrix.platform.os == 'windows-latest'
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -106,5 +108,7 @@ jobs:
run: npm i --ignore-scripts --no-audit --no-fund
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Set Tap RC
run: node ./test/fixtures/taprc.js
- name: Test
run: npm test --ignore-scripts -iwr
3 changes: 2 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
contents: read
security-events: write
steps:
- name: Support Long Pathsg
- name: Support Long Paths
if: matrix.platform.os == 'windows-latest'
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@v3
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/post-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
run:
shell: bash
steps:
- name: Support Long Pathsg
- name: Support Long Paths
if: matrix.platform.os == 'windows-latest'
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@v3
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
run:
shell: bash
steps:
- name: Support Long Pathsg
- name: Support Long Paths
if: matrix.platform.os == 'windows-latest'
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@v3
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
run:
shell: bash
steps:
- name: Support Long Pathsg
- name: Support Long Paths
if: matrix.platform.os == 'windows-latest'
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -109,7 +110,8 @@ jobs:
run:
shell: bash
steps:
- name: Support Long Pathsg
- name: Support Long Paths
if: matrix.platform.os == 'windows-latest'
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -215,7 +217,8 @@ jobs:
run:
shell: bash
steps:
- name: Support Long Pathsg
- name: Support Long Paths
if: matrix.platform.os == 'windows-latest'
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@v3
Expand Down
3 changes: 2 additions & 1 deletion scripts/template-oss/_step-git.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
- name: Support Long Pathsg
- name: Support Long Paths
if: matrix.platform.os == 'windows-latest'
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@v3
Expand Down
6 changes: 6 additions & 0 deletions scripts/template-oss/_step-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Set Tap RC
run: node ./test/fixtures/taprc.js
- name: Test
run: {{ rootNpmPath }} test --ignore-scripts {{~#if jobRunFlags}} {{ jobRunFlags }}{{/if}}
4 changes: 4 additions & 0 deletions test/fixtures/.taprc.win32
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
lines: 98
branches: 98
statements: 98
functions: 98
11 changes: 11 additions & 0 deletions test/fixtures/taprc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const fs = require('fs')
const path = require('path')

if (process.platform === 'win32') {
fs.writeFileSync(path.resolve(__dirname, '..', '..', '.taprc'), [
'lines: 98',
'branches: 98',
'statements: 98',
'functions: 98',
].join('\n'))
}

0 comments on commit 8d18199

Please sign in to comment.