diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..a552cd0d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +name: Tests + +on: + pull_request: + +permissions: + contents: read + +jobs: + check-linting: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Install node + uses: actions/setup-node@v4 + with: + node-version: 20 + - run: yarn install --frozen-lockfile + - run: yarn generate:papi:e2e + - run: yarn install --frozen-lockfile + working-directory: client + - run: yarn typecheck + - run: yarn format + - run: yarn lint diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6250a550..34316e00 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -95,15 +95,6 @@ variables: #### stage: test -check-linting: - stage: test - <<: *common-refs - <<: *kubernetes-env - script: - - yarn --frozen-lockfile - - yarn generate:papi:e2e - - cd client && yarn --frozen-lockfile && cd .. - - yarn typecheck && yarn format && yarn lint check-tests: stage: test