Bump @aws-sdk/client-dynamodb from 3.431.0 to 3.435.0 in /src #478
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
name: CI / App | |
on: | |
pull_request: | |
branches: [dev, stg, prd] | |
types: [opened, reopened, synchronize, edited] | |
paths: | |
- 'src/**' | |
- 'docker-compose.yml' | |
- '.github/workflows/ci-app.yml' | |
env: | |
node_version: "18.x" | |
FORCE_COLOR: 3 | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.node_version }} | |
cache: npm | |
cache-dependency-path: '**/package-lock.json' | |
- name: npm ci | |
working-directory: src | |
run: npm ci --prefer-offline | |
- name: npm test | |
working-directory: src | |
run: npm test | |
- name: Report test coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
if: env.CODECOV_TOKEN | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
audit: | |
name: Audit | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.node_version }} | |
# We don't need to install deps to audit them | |
- name: npm audit | |
working-directory: src | |
run: npm audit --audit-level=critical | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.node_version }} | |
cache: npm | |
cache-dependency-path: '**/package-lock.json' | |
- name: npm ci | |
working-directory: src | |
run: npm ci --prefer-offline | |
- name: npm lint | |
working-directory: src | |
run: npm run lint | |
docker: | |
name: Docker Build | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: docker build | |
uses: docker/build-push-action@v5 | |
with: | |
context: src | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
hadolint: | |
name: Lint Docker | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- uses: actions/checkout@v4 | |
# Hadolint follows semantic versioning, but doesn't have a @v2 release | |
- name: Lint Dockerfile | |
uses: hadolint/[email protected] | |
with: | |
dockerfile: src/Dockerfile | |