Skip to content

Commit

Permalink
add TOC and replace npm install with npm ci
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Wick <andywick@amazon.com>
  • Loading branch information
awick committed Aug 5, 2024
1 parent 1217e36 commit 2c59109
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/analyze-pr-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
-e OPENSEARCH_INITIAL_ADMIN_PASSWORD="$OPENSEARCH_PASSWORD" \
opensearch-with-api-plugin
npm install
npm ci
npm run dump-cluster-spec -- --opensearch-insecure --output $CLUSTER_SPEC
Expand All @@ -72,7 +72,7 @@ jobs:
- name: Build BEFORE Spec
shell: bash -eo pipefail {0}
run: |
npm install
npm ci
npm run merge -- --source ./spec --output $BEFORE_SPEC
- name: Checkout AFTER Spec
Expand All @@ -82,7 +82,7 @@ jobs:
- name: Build AFTER Spec
shell: bash -eo pipefail {0}
run: |
npm install
npm ci
npm run merge -- --source ./spec --output $AFTER_SPEC
- name: Calculate Coverage
Expand Down Expand Up @@ -216,4 +216,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: pr-comment
path: pr-comment.json
path: pr-comment.json
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
node-version: '20'

- name: Build
run: npm install && npm run merge
run: npm ci && npm run merge

- name: Extract Branch Name
id: branch
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
node-version: '20'

- name: Install Dependencies
run: npm install
run: npm ci

- name: Lint
run: npm run lint
2 changes: 1 addition & 1 deletion .github/workflows/test-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
node-version: '20'

- name: Install Dependencies
run: npm install
run: npm ci

- name: Run OpenSearch Cluster
working-directory: .github/opensearch-cluster
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-tools-integ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
node-version: '20'

- name: Install Dependencies
run: npm install
run: npm ci

- name: Tests
run: |
Expand All @@ -52,4 +52,4 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/test-tools-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
node-version: '20'

- name: Install Dependencies
run: npm install
run: npm ci

- name: Tests
run: |
Expand All @@ -42,4 +42,4 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/validate-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
node-version: '20'

- name: Install Dependencies
run: npm install
run: npm ci

- name: Lint Spec
run: npm run lint:spec
3 changes: 3 additions & 0 deletions TESTING_GUIDE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<!-- TOC -->
- [Spec Testing Guide](#spec-testing-guide)
- [Running Spec Tests Locally](#running-spec-tests-locally)
- [Common Errors](#common-errors)
- [401 Unauthorized](#401-unauthorized)
- [FORBIDDEN/10/cluster create-index blocked (api)](#forbidden10cluster-create-index-blocked-api)
- [Writing Spec Tests](#writing-spec-tests)
- [Simple Test Story](#simple-test-story)
- [Using Output from Previous Chapters](#using-output-from-previous-chapters)
Expand Down

0 comments on commit 2c59109

Please sign in to comment.