Enable MLS in Docker container, run MLS client tests in CI #88
Workflow file for this run
This file contains 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: MLS Client | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- 'packages/mls-client/**' | |
- '.github/workflows/mls-client.yml' | |
- 'dev/**' | |
- '.node-version' | |
- '.nvmrc' | |
- '.prettierignore' | |
- '.prettierrc.cjs' | |
- '.yarnrc.yml' | |
- 'turbo.json' | |
- 'yarn.lock' | |
jobs: | |
typecheck: | |
name: Typecheck | |
runs-on: warp-ubuntu-latest-x64-8x | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
env: | |
SKIP_YARN_COREPACK_CHECK: '1' | |
- name: Enable corepack | |
run: corepack enable | |
- name: Install dependencies | |
run: yarn | |
- name: Typecheck | |
run: | | |
cd packages/mls-client | |
yarn typecheck | |
lint: | |
name: Lint | |
runs-on: warp-ubuntu-latest-x64-8x | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
env: | |
SKIP_YARN_COREPACK_CHECK: '1' | |
- name: Enable corepack | |
run: corepack enable | |
- name: Install dependencies | |
run: yarn | |
- name: Lint | |
run: | | |
cd packages/mls-client | |
yarn lint | |
prettier: | |
name: Prettier | |
runs-on: warp-ubuntu-latest-x64-8x | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
env: | |
SKIP_YARN_COREPACK_CHECK: '1' | |
- name: Enable corepack | |
run: corepack enable | |
- name: Install dependencies | |
run: yarn | |
- name: Format check | |
run: | | |
cd packages/mls-client | |
yarn format:check | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
env: | |
SKIP_YARN_COREPACK_CHECK: '1' | |
- name: Enable corepack | |
run: corepack enable | |
- name: Install dependencies | |
run: yarn | |
- run: ./dev/up | |
- run: | | |
cd packages/mls-client | |
yarn test | |
build: | |
name: Build | |
runs-on: warp-ubuntu-latest-x64-8x | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
env: | |
SKIP_YARN_COREPACK_CHECK: '1' | |
- name: Enable corepack | |
run: corepack enable | |
- name: Install dependencies | |
run: yarn | |
- name: Build | |
run: | | |
cd packages/mls-client | |
yarn build |