From b9a48bb139ad4b6d974cc75fc9305283c0d14e90 Mon Sep 17 00:00:00 2001 From: Ry Racherbaumer Date: Fri, 12 Jul 2024 10:49:41 -0500 Subject: [PATCH] Update CI workflows --- .github/workflows/js-sdk.yml | 4 ++ .github/workflows/mls-client.yml | 4 ++ .github/workflows/noop.yml | 66 ++++++++++++++++++++++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 .github/workflows/noop.yml diff --git a/.github/workflows/js-sdk.yml b/.github/workflows/js-sdk.yml index 3ff64cfc..ab79652e 100644 --- a/.github/workflows/js-sdk.yml +++ b/.github/workflows/js-sdk.yml @@ -9,10 +9,14 @@ on: paths: - 'packages/js-sdk/**' - '.github/workflows/js-sdk.yml' + - 'dev/**' - '.node-version' - '.nvmrc' - '.prettierignore' - '.prettierrc.cjs' + - '.yarnrc.yml' + - 'turbo.json' + - 'yarn.lock' jobs: typecheck: diff --git a/.github/workflows/mls-client.yml b/.github/workflows/mls-client.yml index 039fc99c..9152ac65 100644 --- a/.github/workflows/mls-client.yml +++ b/.github/workflows/mls-client.yml @@ -9,10 +9,14 @@ on: paths: - 'packages/mls-client/**' - '.github/workflows/mls-client.yml' + - 'dev/**' - '.node-version' - '.nvmrc' - '.prettierignore' - '.prettierrc.cjs' + - '.yarnrc.yml' + - 'turbo.json' + - 'yarn.lock' jobs: typecheck: diff --git a/.github/workflows/noop.yml b/.github/workflows/noop.yml new file mode 100644 index 00000000..b58468e7 --- /dev/null +++ b/.github/workflows/noop.yml @@ -0,0 +1,66 @@ +name: No code changes + +on: + push: + branches: + - main + + pull_request: + paths: + - '.changeset/**' + - '.github/**' + - '!.github/workflows/js-sdk.yml' + - '!.github/workflows/mls-client.yml' + - '.vscode/**' + - '.yarn/**' + - '*' + - '!.node-version' + - '!.nvmrc' + - '!.prettierignore' + - '!.prettierrc.cjs' + - '!.yarnrc.yml' + - '!turbo.json' + - '!yarn.lock' + +jobs: + typecheck: + name: Typecheck + runs-on: ubuntu-latest + steps: + - run: echo "Nothing to typecheck" + + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - run: echo "Nothing to lint" + + prettier: + name: Prettier + 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 + - name: Format check + run: yarn prettier -c . + + test: + name: Test + runs-on: ubuntu-latest + steps: + - run: echo "Nothing to test" + + build: + name: Build + runs-on: ubuntu-latest + steps: + - run: echo "Nothing to build"