Skip to content

Bump js-yaml from 4.1.0 to 4.1.1 in /services/app/apps/runner/images/css #1183

Bump js-yaml from 4.1.0 to 4.1.1 in /services/app/apps/runner/images/css

Bump js-yaml from 4.1.0 to 4.1.1 in /services/app/apps/runner/images/css #1183

Workflow file for this run

name: Build PR
on:
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
MIX_ENV: test
POSTGRES_PASSWORD: postgres
services:
db:
image: postgres:16-alpine
ports: ["5432:5432"]
env:
POSTGRES_PASSWORD: ${{ env.POSTGRES_PASSWORD }}
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
--name=pg_ci
--mount type=tmpfs,destination=/var/lib/postgresql/data
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Elixir
uses: erlef/setup-beam@v1
with:
otp-version: "27.3"
elixir-version: "1.18.4"
- name: Cache Dependencies
uses: actions/cache@v4
id: deps-cache
with:
path: |
./services/app/deps
./services/app/_build
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-
- name: Get deps
if: steps.deps-cache.outputs.cache-hit != 'true'
run: mix deps.get
working-directory: ./services/app
- name: Mix deps.compile
run: mix compile --warnings-as-errors
working-directory: ./services/app
- name: Mix format
run: mix format --check-formatted
working-directory: ./services/app
- name: Mix credo
run: mix credo --strict
working-directory: ./services/app
# --- pnpm setup & caching ---
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "24"
cache: "pnpm"
cache-dependency-path: ./services/app/apps/codebattle/pnpm-lock.yaml
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
- name: Install pnpm dependencies
run: pnpm install --frozen-lockfile
working-directory: ./services/app/apps/codebattle
- name: Eslint
run: pnpm lint
working-directory: ./services/app/apps/codebattle
- name: Run jest
run: pnpm test
working-directory: ./services/app/apps/codebattle
# --- end pnpm block ---
- name: Setup db
run: |
mix ecto.create
mix ecto.migrate
working-directory: ./services/app
- name: Mix tests
run: make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./services/app/assp/codebattle/cover/excoveralls.json
fail_ci_if_error: false