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 3bfe791
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
TEST_API_KEY: ${{ secrets.SN_API_KEY_DEV }}
TEST_ENVIRONMENT: development
TEST_DOC_ENVIRONMENT: Live
TEST_DESIGN_SYSTEM_ID: 3644
TEST_SYNC_DESIGN_SYSTEM_ID: 3644
TEST_BRAND_ID: acf822d2-c315-4897-b875-d5b00654b057
TEST_DESIGN_SYSTEM_ID: 3646
TEST_SYNC_DESIGN_SYSTEM_ID: 3646
TEST_BRAND_ID: c6c7a475-164f-4a27-a273-c7f8b12a726e

steps:
- uses: actions/checkout@v3
Expand All @@ -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 3bfe791

Please sign in to comment.