Skip to content

Commit

Permalink
Bugfix/release lint fix (#126)
Browse files Browse the repository at this point in the history
* lint fix

* CI now runs also lint etc
  • Loading branch information
jvilimek authored Dec 6, 2022
1 parent 7b05499 commit 6820873
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 9 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ permissions:

jobs:
build:
# TODO: template for build to DRY for CI and for publish workflows
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -27,9 +28,28 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn tsc
- run: yarn test

- name: validate config
run: yarn backstage-cli config:check --lax

- name: lint
run: yarn backstage-cli repo lint

- name: type checking and declarations
run: yarn tsc:full

- name: build
run: yarn backstage-cli repo build --all
env:
CI: true

- name: verify type dependencies
run: yarn lint:type-deps

- name: test
run: |
yarn lerna -- run test -- --coverage --runInBand
- name: Cypress e2e tests
uses: cypress-io/github-action@v2
with:
Expand All @@ -38,6 +58,3 @@ jobs:
project: ./packages/app
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: yarn build
env:
CI: true
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ describe('ScoreBoardPage-EmptyData', () => {
});
});


describe('ScoreCard-TestWithData', () => {
class MockClient implements ScoringDataApi {
class MockClient implements ScoringDataApi {
getScore(
_entity?: Entity | undefined,
): Promise<SystemScoreExtended | undefined> {
Expand All @@ -90,6 +89,7 @@ describe('ScoreCard-TestWithData', () => {
const mockClient = new MockClient();

// TODO: find how to stop render the progress bar and display the ScoreCardTable
// eslint-disable-next-line jest/no-commented-out-tests
// it('should render title', async () => {
// jest.useFakeTimers();

Expand Down Expand Up @@ -128,7 +128,7 @@ describe('ScoreCard-TestWithData', () => {
await findByTestId('score-board-table');

const podcastColumn = await getByText('podcast');
const podcastRow = podcastColumn.closest("tr");
const podcastRow = podcastColumn.closest('tr');
expect(podcastRow).toHaveTextContent('AB+DFFC');
});
});

0 comments on commit 6820873

Please sign in to comment.