Skip to content

Commit

Permalink
chore(ci): Fix remote fetch and yarn args (#2)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Coufal <[email protected]>

Signed-off-by: Tomas Coufal <[email protected]>
  • Loading branch information
tumido authored Nov 30, 2022
1 parent e957eb4 commit e2a3294
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ runs:

- name: Build all packages
shell: bash
run: yarn build -- ${{ inputs.args }}
run: yarn build ${{ inputs.args }}
2 changes: 1 addition & 1 deletion .github/actions/test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,24 @@ 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
runs-on: ubuntu-latest
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
4 changes: 1 addition & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"extends": "@backstage/cli/config/tsconfig.json",
"include": [
"packages/*/src"
],
"include": ["packages/*/src"],
"exclude": ["node_modules"],
"compilerOptions": {
"outDir": "dist-types",
Expand Down
10 changes: 10 additions & 0 deletions yamllint-config.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e2a3294

Please sign in to comment.