Skip to content

Bump axios from 1.13.2 to 1.13.5 in /packages/server #5

Bump axios from 1.13.2 to 1.13.5 in /packages/server

Bump axios from 1.13.2 to 1.13.5 in /packages/server #5

Workflow file for this run

name: precisionFDA
on:
push:
branches:
- "master"
pull_request:
branches:
- "*"
jobs:
# Prepopulates ruby cache
# This is because of behaviour of github actions
# When two parallel jobs attempt to write same set of deps into cache
# It causes following error
# Unable to reserve cache with key setup-ruby-bundler-cache-v3-ubuntu-20.04-ruby-2.7.5-Gemfile.lock-e82dcaca5ba83e867a2506d159bec55cc14ba20a0d7df00850b22a1f25d364ba, another job may be creating this cache.
# Example run: https://github.com/dnanexus/precision-fda/runs/5841042836?check_suite_focus=true
# Every job that uses ruby dependencies should wait for this job first
# needs: [ruby-setup]
ruby-setup:
name: Setup Ruby
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
working-directory: ./packages/rails
bundler-cache: true
cache-version: 1
static-analysis-master:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
name: Static Analysis for Master
runs-on: ubuntu-latest
env:
MAKE: "make --jobs 4"
needs: [ruby-setup]
steps:
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
working-directory: ./packages/rails
bundler-cache: true
cache-version: 1
# # Enable this after a global rubocop fix.
# - name: Rubocop
# run: bundle exec rubocop
- name: Brakeman
working-directory: ./packages/rails
run: bundle exec brakeman -A -w2 --parser-timeout 30
ruby-static-analysis-pr:
if: ${{ github.event_name == 'pull_request' }}
name: Ruby Static Analysis for PR
runs-on: ubuntu-latest
env:
MAKE: "make --jobs 4"
permissions:
contents: read
pull-requests: write
statuses: write
needs: [ruby-setup]
steps:
- uses: actions/checkout@v4
- name: Fetch Git branches
run: git fetch --no-tags --prune origin +refs/heads/*:refs/remotes/origin/*
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
working-directory: ./packages/rails
bundler-cache: true
cache-version: 1
- name: Rubocop
working-directory: ./packages/rails
run: bundle exec pronto run -f github_status github_pr -c origin/${{ github.base_ref }}
env:
PRONTO_PULL_REQUEST_ID: ${{ github.event.pull_request.number }}
PRONTO_GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUNDLE_PATH: "vendor/bundle"
- name: Brakeman
working-directory: ./packages/rails
run: bundle exec pronto run -f github_status github_pr -c origin/${{ github.base_ref }} -r brakeman
env:
PRONTO_PULL_REQUEST_ID: ${{ github.event.pull_request.number }}
PRONTO_GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUNDLE_PATH: "vendor/bundle"
node-static-analysis-pr:
name: Node Static Analysis for PR
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
statuses: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Setup pnpm
run: |
corepack enable
corepack prepare pnpm@10.10.0 --activate
- name: Install modules
run: pnpm install
- name: Run eslint on changed files (server)
uses: tj-actions/eslint-changed-files@74f98653675512158746d3136cd2d9326fbfb6e1 #v25.3.0
with:
path: packages/server
config_path: "./eslint.config.mjs"
level: "info"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run eslint on changed files (client)
uses: tj-actions/eslint-changed-files@74f98653675512158746d3136cd2d9326fbfb6e1 #v25.3.0
with:
path: packages/client
config_path: "./eslint.config.mjs"
level: "info"
token: ${{ secrets.GITHUB_TOKEN }}
test-ruby:
name: Test Ruby
runs-on: ubuntu-latest
env:
MAKE: "make --jobs 4"
services:
mysql:
image: mysql:5.7
ports:
- 3306:3306
env:
MYSQL_ROOT_PASSWORD: password
needs: [ruby-setup]
steps:
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
working-directory: ./packages/rails
bundler-cache: true
cache-version: 1
- name: Install & Build
working-directory: ./packages/rails
env:
NO_FIPS: 1
run: |
sudo apt-get update
sudo apt-get install -y cmake libssl-dev nodejs
npm install -g bower
bower install --allow-root
cp config/database.ci.yml config/database.yml
bundle exec rake db:setup
mkdir -p app/assets/packs
touch app/assets/packs/bundle.js
touch app/assets/packs/bundle.css
- name: Test
working-directory: ./packages/rails
env:
NO_FIPS: 1
RAILS_LOG_TO_STDOUT: 1
LOG_REQUESTS: 1
run: bundle exec rspec
test-https-apps:
name: Test HTTPS Apps
runs-on: ubuntu-latest
env:
NODE_ENV: ci_test
DATABASE_TEST_URL: mysql://root:password@127.0.0.1:3306/test_db
DATABASE_TEST_NAME: test_db
SECRET_KEY_BASE: secret
MAKE: "make --jobs 4"
services:
mysql:
image: mysql:5.7
ports:
- 3306:3306
env:
MYSQL_ROOT_PASSWORD: password
redis:
image: redis
ports:
- 6379:6379
needs: [ ruby-setup ]
steps:
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
working-directory: ./packages/rails
bundler-cache: true
cache-version: 1
- uses: actions/setup-node@v4
with:
node-version: "22.15.0"
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 10.10.0
- name: Verify pnpm
run: pnpm -v
- name: Prepare env & DB
working-directory: ./packages/rails
env:
NO_FIPS: 1
run: |
sudo apt-get update
sudo apt-get install -y cmake libssl-dev
cp config/database.ci.yml config/database.yml
bundle exec rake db:setup
bundle exec rake db:generate_mock_data
bundle exec rake user:generate_test_users
- name: Install Dependencies (Server Only)
working-directory: ./packages/server
run: pnpm install --frozen-lockfile --filter ./packages/server... --prod=false --filter .
- name: Run Tests
working-directory: ./packages/server
run: |
make test-shared
make test-worker
make test-api
make test-admin-platform-client
- name: Test Production Build
working-directory: ./packages/server
run: pnpm run build
- name: Test API Production Start
working-directory: ./packages/server
run: make run-dist ARGS="-- --shutdown"
timeout-minutes: 1
- name: Test Worker Production Start
working-directory: ./packages/server
run: make run-dist ARGS="-- --shutdown"
timeout-minutes: 1
test-react-app:
name: Test React app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 10.10.0
- uses: actions/setup-node@v4
with:
node-version: "22.15.0"
cache: "pnpm"
- name: Install dependencies
working-directory: ./packages/client
run: pnpm install --frozen-lockfile --prod=false
- name: Install Playwright browsers
working-directory: ./packages/client
run: pnpm exec playwright install chromium --with-deps
- name: Test
working-directory: ./packages/client
run: pnpm test:run
test-react-app-production:
name: Test React app production build
runs-on: ubuntu-latest
env:
NODE_ENV: production
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 10.10.0
- uses: actions/setup-node@v4
with:
node-version: "22.15.0"
cache: "pnpm"
- name: Install dependencies
working-directory: ./packages/client
run: pnpm install --frozen-lockfile --prod=false
- name: Build production
working-directory: ./packages/client
run: pnpm run build