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 9bcfd3e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- name: Build local exporter
run: cd ${{ github.workspace }}/test-resources/exporter && npm i && npm run build && cd ${{ github.workspace }}

- name: Authenticate with private NPM package
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN_READ }}" > ~/.npmrc

Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ jobs:
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Ensure there is no .nprmc with tokens
uses: GuillaumeFalourd/[email protected]
with:
command_line: cat ~/.npmrc
assert_file_path: ${{ github.workspace }}/test-resources/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 test-resources/discard.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cat: /home/runner/.npmrc: No such file or directory

0 comments on commit 9bcfd3e

Please sign in to comment.