From e2a3294eaf0c4bb3e9019861db0f08164b5c2d6d Mon Sep 17 00:00:00 2001 From: Tom Coufal <7453394+tumido@users.noreply.github.com> Date: Wed, 30 Nov 2022 19:18:58 +0100 Subject: [PATCH] chore(ci): Fix remote fetch and yarn args (#2) Signed-off-by: Tomas Coufal Signed-off-by: Tomas Coufal --- .github/actions/build/action.yaml | 2 +- .github/actions/test/action.yaml | 2 +- .github/workflows/pr.yaml | 8 ++++++-- tsconfig.json | 4 +--- yamllint-config.yaml | 10 ++++++++++ 5 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 yamllint-config.yaml diff --git a/.github/actions/build/action.yaml b/.github/actions/build/action.yaml index 43057b844a..d443fb0f42 100644 --- a/.github/actions/build/action.yaml +++ b/.github/actions/build/action.yaml @@ -25,4 +25,4 @@ runs: - name: Build all packages shell: bash - run: yarn build -- ${{ inputs.args }} + run: yarn build ${{ inputs.args }} diff --git a/.github/actions/test/action.yaml b/.github/actions/test/action.yaml index cd9f80d29a..b18bd2c622 100644 --- a/.github/actions/test/action.yaml +++ b/.github/actions/test/action.yaml @@ -25,7 +25,7 @@ runs: - name: Run lint shell: bash - run: yarn lint -- ${{ inputs.args }} + run: yarn lint ${{ inputs.args }} - name: Run tests shell: bash diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 3ea1fec4ff..ee0e7befbd 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -9,11 +9,13 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Test uses: ./.github/actions/test with: - args: --since origin/master + args: --since origin/main build: name: Build all packages @@ -21,8 +23,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Build uses: ./.github/actions/build with: - args: --since origin/master + args: --since origin/main diff --git a/tsconfig.json b/tsconfig.json index 39281e2dee..eabc561d25 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,6 @@ { "extends": "@backstage/cli/config/tsconfig.json", - "include": [ - "packages/*/src" - ], + "include": ["packages/*/src"], "exclude": ["node_modules"], "compilerOptions": { "outDir": "dist-types", diff --git a/yamllint-config.yaml b/yamllint-config.yaml new file mode 100644 index 0000000000..4717553a6b --- /dev/null +++ b/yamllint-config.yaml @@ -0,0 +1,10 @@ +--- +extends: default +rules: + line-length: disable + document-start: disable + comments-indentation: disable + indentation: + indent-sequences: whatever + hyphens: + max-spaces-after: 4