Skip to content

Update dependency eslint to v9 - autoclosed #9293

Update dependency eslint to v9 - autoclosed

Update dependency eslint to v9 - autoclosed #9293

Workflow file for this run

name: Tests
on:
push:
branches:
- "**"
tags-ignore:
- "v*"
pull_request:
branches:
- main
permissions:
contents: read
jobs:
go-test:
name: Go Tests
permissions:
id-token: write
contents: read
uses: harryzcy/github-actions/.github/workflows/go.yml@main
with:
working-directory: bff
jest-test:
name: Jest Tests
runs-on: ubuntu-24.04
strategy:
matrix:
node-version: [20.x, 22.x]
permissions:
id-token: write
defaults:
run:
working-directory: web
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
cli.codecov.io:443
codecov.io:443
github.com:443
registry.npmjs.org:443
storage.googleapis.com:443
uploader.codecov.io:443
objects.githubusercontent.com:443
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Setup Node
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
use_oidc: true
docker:
name: Docker Build
runs-on: ubuntu-24.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
auth.docker.io:443
github.com:443
production.cloudflare.docker.com:443
proxy.golang.org:443
registry-1.docker.io:443
registry.npmjs.org:443
storage.googleapis.com:443
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Set up QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
- name: Get build variables
run: |
# shellcheck disable=SC2129
echo "BUILD_COMMIT=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
echo "BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> "$GITHUB_ENV"
echo "BUILD_VERSION=$(git describe --tags --always)" >> "$GITHUB_ENV"
- name: Check build variables
run: |
echo "$BUILD_COMMIT"
echo "$BUILD_DATE"
echo "$BUILD_VERSION"
- name: Build docker image
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
with:
context: .
build-args: |
BUILD_DATE=${{ env.BUILD_DATE }}
BUILD_COMMIT=${{ env.BUILD_COMMIT }}
BUILD_VERSION=${{ env.BUILD_VERSION }}
platforms: linux/amd64,linux/arm64/v8
push: false