fix(deps): update dependency @sentry/node to v8.47.0 #7376
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
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
name: Test on node ${{ matrix.node_version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node_version: [18, 20] | |
env: | |
CI: true | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node_version }} | |
uses: actions/setup-node@master | |
with: | |
node-version: ${{ matrix.node_version }} | |
- name: Install pnpm | |
uses: pnpm/[email protected] | |
- name: Get pnpm cache - Set output | |
id: pnpm-cache | |
run: echo "{dir}={pnpm cache dir}" >> $GITHUB_OUTPUT | |
- name: Cache pnpm | |
uses: actions/cache@v3 | |
with: | |
path: ${ env.dir } | |
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm- | |
- name: Install | |
run: pnpm i --no-frozen-lockfile | |
- name: Build | |
run: pnpm build | |
- name: Test | |
run: pnpm test | |
- name: Lint ESLint | |
run: pnpm lint | |
- name: Lint Prettier | |
run: pnpm lint:prettier | |
- name: Integration tests | |
run: | | |
chmod +x ./packages/cli/dist/cjs/index.js | |
echo 2001 | |
node ./packages/cli/dist/cjs/index.js validate './integration_tests/2001/operations/**/*.graphql' './integration_tests/2001/schema.graphql' | |
echo 1991 | |
node ./packages/cli/dist/cjs/index.js validate './integration_tests/1991/two-operations.js' './integration_tests/1991/schema.graphql' | |
echo 1985 | |
node ./packages/cli/dist/cjs/index.js introspect ./integration_tests/1985/schema.js || echo 'TODO' | |
echo 2108 | |
node ./packages/cli/dist/cjs/index.js introspect './integration_tests/2108/**/!(excluded)/*.graphql' --write ./2108.graphql | |
if grep -ic "bar" ./2108.graphql | |
then echo "Broken" && exit 1 | |
else echo "Works" | |
fi | |
echo 2027 | |
node ./packages/cli/dist/cjs/index.js diff ./integration_tests/2027/schema-before.graphql ./integration_tests/2027/schema-after.graphql --rule considerUsage --onUsage ./integration_tests/2027/unused-hotels.js | |
echo 2088 | |
node ./packages/cli/dist/cjs/index.js diff ./integration_tests/2088/old.graphql ./integration_tests/2088/new.graphql --rule suppressRemovalOfDeprecatedField |