Skip to content

ci: add test workflow #1

ci: add test workflow

ci: add test workflow #1

Workflow file for this run

name: test
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Dependencies
run: npm ci
- name: Build Registry
run: npm run build
- name: Run Test
env:
R2_HOSTNAME: ${{ secrets.TEST_R2_HOSTNAME }}
S3_ACCESS_KEY_ID: ${{ secrets.TEST_S3_ACCESS_KEY_ID }}
S3_BUCKET: ${{ secrets.TEST_S3_BUCKET }}
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
S3_SECRET_ACCESS_KEY: ${{ secrets.TEST_S3_SECRET_ACCESS_KEY }}
run: npm test