Bump winston from 3.9.0 to 3.13.0 #483
Workflow file for this run
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
# caching pnpm deps: https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-data | |
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
AXIOM_TOKEN: ${{ secrets.TESTING_STAGING_E2E_TOKEN }} | |
AXIOM_URL: ${{ secrets.TESTING_STAGING_API_URL }} | |
AXIOM_ORG_ID: ${{ secrets.TESTING_STAGING_E2E_ORG_ID }} | |
AXIOM_DATASET_SUFFIX: ${{ github.run_id }} | |
NODEVERSION: 18.x | |
PNPM_VERSION: 8.15.5 | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: | |
- 18.x | |
- 20.x | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: ${{ env.PNPM_VERSION }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'pnpm' | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm build && pnpm build:cjs | |
- run: pnpm lint | |
- run: pnpm test | |
check-winston-example: | |
name: Check Winston example | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: | |
- 18.x | |
- 20.x | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: ${{ env.PNPM_VERSION }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'pnpm' | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm build && pnpm build:cjs | |
- run: cd examples/winston && pnpm example | |
test-integration: | |
name: Test (Integration) | |
runs-on: ubuntu-latest | |
needs: build | |
if: github.event.pull_request.head.repo.full_name == github.repository | |
strategy: | |
matrix: | |
node: | |
- 18.x | |
- 20.x | |
max-parallel: 1 | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: ${{ env.PNPM_VERSION }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'pnpm' | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm build && pnpm build:cjs | |
- env: | |
AXIOM_TOKEN: ${{ secrets.TESTING_STAGING_TOKEN }} | |
AXIOM_URL: ${{ secrets.TESTING_STAGING_API_URL }} | |
AXIOM_ORG_ID: ${{ secrets.TESTING_STAGING_ORG_ID }} | |
AXIOM_DATASET_SUFFIX: ${{ github.run_id }}-${{ matrix.node }} | |
run: pnpm integration | |
deploy-e2e-apps: | |
name: Deploy E2E apps | |
runs-on: ubuntu-latest | |
needs: build | |
if: github.event.pull_request.head.repo.full_name == github.repository | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: amondnet/vercel-action@v25 #deploy | |
id: vercel-deploy | |
with: | |
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required | |
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}} #Required | |
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}} #Required | |
scope: ${{ secrets.VERCEL_SCOPE }} | |
outputs: | |
preview-url: ${{ steps.vercel-deploy.outputs.preview-url }} | |
environment: | |
name: E2EPreview | |
url: ${{ steps.vercel-deploy.outputs.preview-url }} | |
test-e2e: | |
name: E2E tests | |
runs-on: ubuntu-latest | |
needs: | |
- deploy-e2e-apps | |
if: github.event.pull_request.head.repo.full_name == github.repository | |
strategy: | |
matrix: | |
node: | |
- 18.x | |
max-parallel: 1 | |
fail-fast: true | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: ${{ env.PNPM_VERSION }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'pnpm' | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm build && pnpm build:cjs # cjs build needed to run tests | |
- env: | |
TESTING_TARGET_URL: ${{ needs.deploy-e2e-apps.outputs.preview-url }} | |
run: pnpm run e2e |