Skip to content

Bump graphql-ws from 5.16.0 to 6.0.7 in /app/assets #3227

Bump graphql-ws from 5.16.0 to 6.0.7 in /app/assets

Bump graphql-ws from 5.16.0 to 6.0.7 in /app/assets #3227

Workflow file for this run

---
name: Meadow Tests
on:
push:
branches-ignore:
- "main"
- "deploy/**"
- "build/**"
jobs:
js-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version-file: ./.tool-versions
cache: 'npm'
cache-dependency-path: |
app/assets/package-lock.json
app/priv/nodejs/*/package-lock.json
lambdas/*/package-lock.json
- name: Install NPM
run: npm install -g npm@${{ env.NPM_VERSION }}
env:
NPM_VERSION: 11.6.0
- name: Install JS dependencies
run: |
npm ci --force --no-fund
npm list
working-directory: app/assets
- name: JS Static Analysis
run: npm run-script prettier
working-directory: app/assets
- name: JS Tests
run: npm run-script ci:silent -- -w 1
working-directory: app/assets
- name: Test ESBuild
run: npm run-script deploy
working-directory: app/assets
elixir-test:
runs-on: ubuntu-latest
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version-file: ./.tool-versions
cache: 'npm'
cache-dependency-path: |
app/assets/package-lock.json
app/priv/nodejs/*/package-lock.json
lambdas/*/package-lock.json
- name: Start service containers in background
run: make localstack-start &
- uses: erlef/setup-beam@v1
with:
version-file: ./.tool-versions
version-type: strict
- uses: hashicorp/setup-terraform@v3
- name: Cache Elixir dependencies and build
uses: actions/cache@v4
with:
path: |
app/_build
app/deps
key: ${{ runner.os }}-hex-v6-${{ hashFiles('app/mix.lock') }}
restore-keys: |
${{ runner.os }}-hex-v6-${{ hashFiles('app/mix.lock') }}
${{ runner.os }}-hex-v6-
- name: Install Elixir dependencies
run: mix do deps.get, compile
working-directory: app
env:
MIX_ENV: test
- name: Elixir Static Analysis
run: mix credo
working-directory: app
- name: Wait for services to be ready
run: timeout 120 bash -c 'while ! ./all-healthy.sh; do sleep 2; done'
working-directory: ./infrastructure/localstack
- name: Set SECRET_KEY_BASE
run: echo "SECRET_KEY_BASE=$(openssl rand -hex 32)" >> $GITHUB_ENV
- name: Provision Localstack using Terraform
run: make localstack-provision
- name: Elixir Tests
run: mix test || mix test --seed $(cat ${MEADOW_TEST_SAVE_SEED}) --failed
env:
AWS_LOCALSTACK: true
USE_SAM_LAMBDAS: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MEADOW_TEST_SAVE_SEED: ${{ runner.temp }}/MEADOW_TEST_SEED
working-directory: app
# - name: Test DB Rollback
# run: mix ecto.rollback --all
# working-directory: app