Skip to content

Commit 313ad40

Browse files
committed
ci: add nut test to pipeline on windows docker
1 parent 686cdc6 commit 313ad40

File tree

4 files changed

+35
-16
lines changed

4 files changed

+35
-16
lines changed

.github/workflows/non-release-build.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,18 @@ permissions:
1010
jobs:
1111
unit-tests:
1212
uses: salesforcecli/github-workflows/.github/workflows/unitTest.yml@main
13-
13+
nuts:
14+
needs: unit-tests
15+
uses: salesforcecli/github-workflows/.github/workflows/nut.yml@main
16+
secrets: inherit
17+
strategy:
18+
matrix:
19+
os: [windows-latest]
20+
fail-fast: false
21+
with:
22+
os: ${{ matrix.os }}
1423
release:
15-
needs: [unit-tests]
24+
needs: [unit-tests, nuts]
1625
name: Release
1726
runs-on: ubuntu-latest
1827
steps:

.github/workflows/test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
7+
8+
jobs:
9+
unit-tests:
10+
uses: salesforcecli/github-workflows/.github/workflows/unitTest.yml@main
11+
nuts:
12+
needs: unit-tests
13+
uses: salesforcecli/github-workflows/.github/workflows/nut.yml@main
14+
secrets: inherit
15+
strategy:
16+
matrix:
17+
os: [windows-latest]
18+
fail-fast: false
19+
with:
20+
os: ${{ matrix.os }}

test/commands/acc-transformer/transform.nut.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('acc-transformer transform NUTs', () => {
2020
const testXmlPath3 = resolve('coverage3.xml');
2121

2222
const configFile = {
23-
packageDirectories: [{ path: 'test/baselines', default: true }],
23+
packageDirectories: [{ path: 'force-app', default: true }, { path: 'packaged' }],
2424
namespace: '',
2525
sfdcLoginUrl: 'https://login.salesforce.com',
2626
sourceApiVersion: '58.0',
@@ -50,21 +50,21 @@ describe('acc-transformer transform NUTs', () => {
5050

5151
it('runs transform on the deploy coverage file without file extensions.', async () => {
5252
const command = `acc-transformer transform --coverage-json "${deployCoverageNoExts}" --xml "${testXmlPath1}"`;
53-
const output = execCmd(command, { ensureExitCode: 0, cli: 'sf' }).shellOutput.stdout;
53+
const output = execCmd(command, { ensureExitCode: 0 }).shellOutput.stdout;
5454

5555
expect(output.replace('\n', '')).to.equal(`The coverage XML has been written to ${testXmlPath1}`);
5656
});
5757

5858
it('runs transform on the deploy coverage file with file extensions.', async () => {
5959
const command = `acc-transformer transform --coverage-json "${deployCoverageWithExts}" --xml "${testXmlPath2}"`;
60-
const output = execCmd(command, { ensureExitCode: 0, cli: 'sf' }).shellOutput.stdout;
60+
const output = execCmd(command, { ensureExitCode: 0 }).shellOutput.stdout;
6161

6262
expect(output.replace('\n', '')).to.equal(`The coverage XML has been written to ${testXmlPath2}`);
6363
});
6464

6565
it('runs transform on the test coverage file.', async () => {
6666
const command = `acc-transformer transform --coverage-json "${testCoverage}" --xml "${testXmlPath3}"`;
67-
const output = execCmd(command, { ensureExitCode: 0, cli: 'sf' }).shellOutput.stdout;
67+
const output = execCmd(command, { ensureExitCode: 0 }).shellOutput.stdout;
6868

6969
expect(output.replace('\n', '')).to.equal(`The coverage XML has been written to ${testXmlPath3}`);
7070
});

0 commit comments

Comments
 (0)