forked from segmentio/action-destinations
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from segmentio/main
Merge upstream
- Loading branch information
Showing
272 changed files
with
13,522 additions
and
2,689 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,14 @@ jobs: | |
run: NODE_ENV=production yarn nx affected -t build --parallel=3 # nx recipe | ||
|
||
- name: Test (Affected) | ||
run: yarn nx affected -t test --parallel=3 # nx recipe | ||
run: yarn nx affected -t test --parallel=3 --coverage # nx recipe | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
slug: segmentio/action-destinations | ||
handle_no_reports_found: true # don't fail if no reports are found | ||
|
||
lint: | ||
name: Lint | ||
|
@@ -66,15 +73,10 @@ jobs: | |
registry-url: 'https://registry.npmjs.org' | ||
cache: yarn | ||
|
||
- name: Use Github Personal Access Token | ||
run: git config --global url."https://${{ secrets.GH_PAT }}@github.com/".insteadOf ssh://[email protected]/ | ||
|
||
- uses: nrwl/nx-set-shas@v3 # nx recipe | ||
|
||
- name: Install Dependencies | ||
run: yarn install --frozen-lockfile | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Build # TODO: This monorepo should be refactored so packages can be linted invidually. "affected" will not work ATM. | ||
run: NODE_ENV=production yarn build # nx recipe | ||
|
@@ -105,15 +107,10 @@ jobs: | |
registry-url: 'https://registry.npmjs.org' | ||
cache: yarn | ||
|
||
- name: Use Github Personal Access Token | ||
run: git config --global url."https://${{ secrets.GH_PAT }}@github.com/".insteadOf ssh://[email protected]/ | ||
|
||
- uses: nrwl/nx-set-shas@v3 # nx recipe | ||
|
||
- name: Install Dependencies | ||
run: yarn install --frozen-lockfile | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Assert yarn.lock is up-to-date | ||
run: bash scripts/assert-lockfile-updated.sh | ||
|
@@ -156,13 +153,8 @@ jobs: | |
registry-url: 'https://registry.npmjs.org' | ||
cache: yarn | ||
|
||
- name: Use Github Personal Access Token | ||
run: git config --global url."https://${{ secrets.GH_PAT }}@github.com/".insteadOf ssh://[email protected]/ | ||
|
||
- name: Install Dependencies | ||
run: yarn install --frozen-lockfile | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Build | ||
run: NODE_ENV=production yarn build:browser-bundles | ||
|
@@ -208,13 +200,8 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Use Github Personal Access Token | ||
run: git config --global url."https://${{ secrets.GH_PAT }}@github.com/".insteadOf ssh://[email protected]/ | ||
|
||
- name: Install Dependencies | ||
run: yarn install --frozen-lockfile | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Install Browser Dependencies | ||
run: npx playwright install-deps | ||
|
@@ -258,13 +245,8 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Use Github Personal Access Token | ||
run: git config --global url."https://${{ secrets.GH_PAT }}@github.com/".insteadOf ssh://[email protected]/ | ||
|
||
- name: Install Dependencies | ||
run: yarn install --frozen-lockfile | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Run Snyk to check for vulnerabilities | ||
uses: snyk/actions/node@master | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,8 +24,6 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GH_PAT }} | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
|
@@ -34,13 +32,8 @@ jobs: | |
registry-url: 'https://registry.npmjs.org' | ||
cache: yarn | ||
|
||
- name: Use Github Personal Access Token | ||
run: git config --global url."https://${{ secrets.GH_PAT }}@github.com/".insteadOf ssh://[email protected]/ | ||
|
||
- name: Install Dependencies | ||
run: yarn install --frozen-lockfile | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Build | ||
run: NODE_ENV=production yarn build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
packages/cli-internal | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
github_checks: | ||
annotations: false | ||
comment: | ||
require_changes: true | ||
|
||
codecov: | ||
require_ci_to_pass: true # Require CI to pass before uploading coverage | ||
notify: | ||
wait_for_ci: true | ||
|
||
# https://about.codecov.io/blog/the-5-levels-of-code-coverage-how-to-build-a-testing-culture-in-your-organization/ | ||
# Setting this configuration as recommended for beginners in the above blog post. | ||
# We can introduce more strict settings as we progress. | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
informational: false | ||
patch: | ||
default: | ||
informational: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.