Skip to content

Update eslint to v8.14.0 (#1691) #1498

Update eslint to v8.14.0 (#1691)

Update eslint to v8.14.0 (#1691) #1498

name: environment-matrix
on:
pull_request:
paths:
- environment-matrix/**
- '*.json'
- '*.yaml'
- .github/workflows/environment-matrix.yaml
push:
branches:
- main
paths:
- environment-matrix/**
- '*.json'
- '*.yaml'
- .github/workflows/environment-matrix.yaml
defaults:
run:
working-directory: environment-matrix
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: 20
- run: corepack enable pnpm
- run: pnpm i
- run: pnpm test
e2e-test:
runs-on: ubuntu-latest
timeout-minutes: 10
outputs:
environments: ${{ steps.environment-matrix.outputs.json }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: 20
- run: corepack enable pnpm
- run: pnpm i
- run: pnpm build
- uses: ./environment-matrix
id: environment-matrix
with:
service: example
rules: |
- pull_request:
base: '**'
head: '**'
environments:
- overlay: pr
namespace: pr-${{ github.event.pull_request.number }}
- push:
ref: refs/heads/main
environments:
- overlay: development
namespace: development
e2e-test-matrix:
needs: e2e-test
runs-on: ubuntu-latest
timeout-minutes: 3
defaults:
run:
working-directory: . # run without actions/checkout
strategy:
fail-fast: true
matrix:
environment: ${{ fromJSON(needs.e2e-test.outputs.environments) }}
steps:
- run: echo 'overlay=${{ matrix.environment.overlay }}'
- run: echo 'namespace=${{ matrix.environment.namespace }}'
- run: echo 'github-deployment-url=${{ matrix.environment.github-deployment-url }}'