From 335f805c49f9697b0b45c5645536efd69dd15974 Mon Sep 17 00:00:00 2001 From: Louie Colgan Date: Mon, 22 Aug 2022 09:51:08 +0100 Subject: [PATCH] chore: update test workflow and tsconfig (#46) --- .../{test.yml => build-and-test.yml} | 21 +++++++++++-------- tsconfig.json | 2 +- 2 files changed, 13 insertions(+), 10 deletions(-) rename .github/workflows/{test.yml => build-and-test.yml} (60%) diff --git a/.github/workflows/test.yml b/.github/workflows/build-and-test.yml similarity index 60% rename from .github/workflows/test.yml rename to .github/workflows/build-and-test.yml index 7959200..ca53693 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/build-and-test.yml @@ -1,26 +1,29 @@ -name: 'build-test' +name: Build and test + on: # rebuild any PRs and main branch changes - pull_request: push: branches: - main - - 'releases/*' + paths-ignore: + - '**.md' + pull_request: + paths-ignore: + - '**.md' jobs: - build: # make sure build/ci work properly + build-and-test: runs-on: ubuntu-latest + steps: - uses: actions/checkout@v3 + - uses: actions/setup-node@v3.4.1 with: node-version: '14' cache: 'yarn' + - run: | yarn install --frozen-lockfile + - run: | yarn all - test: # make sure the action works on a clean machine without building - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: ./ diff --git a/tsconfig.json b/tsconfig.json index f6e7cb5..1c38c05 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,5 +8,5 @@ "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ }, - "exclude": ["node_modules", "**/*.test.ts"] + "exclude": ["node_modules", "**/*.test.ts", "vite.config.ts"] }