Skip to content

Commit

Permalink
CI: Test
Browse files Browse the repository at this point in the history
  • Loading branch information
tchief committed Nov 28, 2023
1 parent 0bb5d73 commit 13bd069
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,26 @@ jobs:
- name: Authenticate with private NPM package
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN_READ }}" > ~/.npmrc

- name: Ensure there is no .nprmc with tokens
run: cat ~/.npmrc

- name: Ensure there is no .nprmc with tokens
run: rm -rf ~/.npmrc

- name: Ensure there is no .nprmc with tokens
uses: GuillaumeFalourd/[email protected]
with:
command_line: cat ~/.npmrc
assert_file_path: discard.txt
expected_result: PASSED

- name: Ensure there is no .nprmc with tokens
uses: GuillaumeFalourd/[email protected]
with:
command_line: cat ~/.npmrc
assert_file_path: ${{ github.workspace }}/test-resources/exporter-output-files.txt
expected_result: PASSED

- name: Install dependencies
run: npm i

Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- name: Ensure there is no .nprmc with tokens
run: cat ~/.npmrc

- name: Ensure there is no .nprmc with tokens
run: rm -rf ~/.npmrc

- name: Ensure there is no .nprmc with tokens
uses: GuillaumeFalourd/[email protected]
with:
command_line: cat ~/.npmrc
assert_file_path: discard.txt
expected_result: PASSED

- name: Install Supernova CLI dependency
run: npm install --g @supernovaio/cli

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: name: Install CLI @PROD
name: Install CLI @PROD

on:
# push:
Expand Down
1 change: 1 addition & 0 deletions discard.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/home/runner/.npmrc: No such file or directory

0 comments on commit 13bd069

Please sign in to comment.