Add scheme flag to storage service #3271
Workflow file for this run
This file contains hidden or 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: Server | |
on: [push] | |
jobs: | |
client: | |
defaults: | |
run: | |
working-directory: web | |
env: | |
NODE_OPTIONS: --openssl-legacy-provider | |
name: Client Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
- run: yarn install --frozen-lockfile --network-timeout 300000 | |
- run: yarn lint | |
- run: yarn build | |
server: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
# This version is duplicated in the root docker-compose.yml | |
image: postgres:13 | |
env: | |
POSTGRES_USER: nmdc | |
POSTGRES_PASSWORD: nmdc | |
POSTGRES_DB: nmdc | |
ports: | |
- 5432:5432 | |
storage: | |
image: fsouza/fake-gcs-server | |
ports: | |
- 4443:4443 | |
options: '-scheme http' | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: [3.12] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Create environment | |
run: | | |
echo 'export NMDC_DATABASE_URI="postgresql://nmdc:nmdc@localhost:5432/nmdc"' >> .env | |
echo 'export NMDC_TESTING_DATABASE_URI="postgresql://nmdc:nmdc@localhost:5432/nmdc"' >> .env | |
echo 'export NMDC_MONGO_USER="${{ secrets.NMDC_MONGO_USER }}"' >> .env | |
echo 'export NMDC_MONGO_PASSWORD="${{ secrets.NMDC_MONGO_PASSWORD }}"' >> .env | |
echo 'export NMDC_USE_FAKE_GCS_SERVER="true"' >> .env | |
echo 'export NMDC_STORAGE_KEY_PREFIX="testing"' >> .env | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install tox tox-gh-actions | |
- name: Test with tox | |
run: tox |