Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 2 additions & 15 deletions .github/workflows/oci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,11 @@ env:

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
arch:
- {
runs-on: warp-ubuntu-latest-x64-4x,
platform: linux/amd64,
platform-short: amd64,
}
- {
runs-on: warp-ubuntu-latest-arm64-8x,
platform: linux/arm64,
platform-short: arm64,
}

name: Build - ${{matrix.arch.platform}}
runs-on: ${{matrix.arch.runs-on}}
name: Build
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -62,7 +50,6 @@ jobs:
with:
context: .
file: Dockerfile
platforms: ${{ matrix.arch.platform }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.OPENAI_MOCK_IMAGE }},push-by-digest=true,name-canonical=true,push=true
secrets: |
Expand Down
59 changes: 19 additions & 40 deletions .github/workflows/pr-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,51 +4,30 @@ concurrency:
cancel-in-progress: true

on:
push:
branches: [ dev ]
pull_request:
merge_group:
branches: [ dev ]

jobs:
ci:
runs-on: warp-ubuntu-latest-x64-8x
permissions:
contents: read
pull-requests: read
checks: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4
- uses: buildjet/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: pnpm
registry-url: 'https://npm.pkg.github.com'
scope: '@clinia'
token: ${{ secrets.CLINIA_CI_GITHUB_TOKEN }}
test:
runs-on: ubuntu-latest

- name: Setup pnpm configs
run: |
pnpm config set npmScopes.clinia.npmRegistryServer "https://npm.pkg.github.com"
pnpm config set npmScopes.clinia.npmAlwaysAuth true
pnpm config set npmScopes.clinia.npmAuthToken $NPM_AUTH_TOKEN
env:
NPM_AUTH_TOKEN: ${{ secrets.CLINIA_CI_GITHUB_TOKEN }}
strategy:
matrix:
node-version: [18.x, 20.x]

- name: Install node modules
env:
NPM_AUTH_TOKEN: ${{ secrets.CLINIA_CI_GITHUB_TOKEN }}
run: pnpm install
steps:
- uses: actions/checkout@v4

- name: Build
env:
NPM_AUTH_TOKEN: ${{ secrets.CLINIA_CI_GITHUB_TOKEN }}
run: pnpm run build
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Tests
env:
NPM_AUTH_TOKEN: ${{ secrets.CLINIA_CI_GITHUB_TOKEN }}
run: pnpm run test
- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test
30 changes: 0 additions & 30 deletions .github/workflows/test.yml

This file was deleted.

Loading