Skip to content

Commit

Permalink
Merge pull request #13 from seatgeek/zh-licenses
Browse files Browse the repository at this point in the history
add licenses
  • Loading branch information
zhammer authored Jan 29, 2024
2 parents 31c98bb + 0c7b928 commit 9d2bb04
Show file tree
Hide file tree
Showing 71 changed files with 279 additions and 622 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- run: yarn tsc
- run: yarn prettier:check
- run: yarn lint:all
test:
test:unit:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -37,3 +37,17 @@ jobs:
cache: 'yarn'
- run: yarn install
- run: yarn test
test:e2e:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn install
- run: yarn test:e2e
2 changes: 1 addition & 1 deletion app-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
app:
title: Scaffolded Backstage App
title: SeatGeek Backstage Plugins Demo Site
baseUrl: http://127.0.0.1:3000

organization:
Expand Down
20 changes: 3 additions & 17 deletions packages/app/e2e-tests/app.test.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,9 @@
/*
* Copyright 2020 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { test, expect } from '@playwright/test';

test('App should render the welcome page', async ({ page }) => {
await page.goto('/');

await expect(page.getByText('My Company Catalog')).toBeVisible();
await expect(
page.getByText('SeatGeek Backstage Plugins Demo Site'),
).toBeVisible();
});
201 changes: 0 additions & 201 deletions plugins/awards-backend/LICENSE

This file was deleted.

4 changes: 4 additions & 0 deletions plugins/awards-backend/src/database/awards.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright SeatGeek
* Licensed under the terms of the Apache-2.0 license. See LICENSE file in project root for terms.
*/
import { v4 as uuid } from 'uuid';
import { Knex } from 'knex';
import { Award } from '@seatgeek/plugin-awards-common';
Expand Down
4 changes: 4 additions & 0 deletions plugins/awards-backend/src/database/awards.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright SeatGeek
* Licensed under the terms of the Apache-2.0 license. See LICENSE file in project root for terms.
*/
import {
PluginDatabaseManager,
resolvePackagePath,
Expand Down
4 changes: 4 additions & 0 deletions plugins/awards-backend/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/*
* Copyright SeatGeek
* Licensed under the terms of the Apache-2.0 license. See LICENSE file in project root for terms.
*/
export * from './service/router';
export { awardsPlugin as default } from './plugin';
4 changes: 4 additions & 0 deletions plugins/awards-backend/src/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright SeatGeek
* Licensed under the terms of the Apache-2.0 license. See LICENSE file in project root for terms.
*/
import { loggerToWinstonLogger } from '@backstage/backend-common';
import {
coreServices,
Expand Down
4 changes: 4 additions & 0 deletions plugins/awards-backend/src/run.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright SeatGeek
* Licensed under the terms of the Apache-2.0 license. See LICENSE file in project root for terms.
*/
import { getRootLogger } from '@backstage/backend-common';
import yn from 'yn';
import { startStandaloneServer } from './service/standaloneServer';
Expand Down
4 changes: 4 additions & 0 deletions plugins/awards-backend/src/service/router.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright SeatGeek
* Licensed under the terms of the Apache-2.0 license. See LICENSE file in project root for terms.
*/
import { DatabaseManager, getVoidLogger } from '@backstage/backend-common';
import {
BackstageIdentityResponse,
Expand Down
4 changes: 4 additions & 0 deletions plugins/awards-backend/src/service/router.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright SeatGeek
* Licensed under the terms of the Apache-2.0 license. See LICENSE file in project root for terms.
*/
import { PluginDatabaseManager, errorHandler } from '@backstage/backend-common';
import express from 'express';
import Router from 'express-promise-router';
Expand Down
4 changes: 4 additions & 0 deletions plugins/awards-backend/src/service/standaloneServer.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright SeatGeek
* Licensed under the terms of the Apache-2.0 license. See LICENSE file in project root for terms.
*/
import {
createServiceBuilder,
DatabaseManager,
Expand Down
4 changes: 4 additions & 0 deletions plugins/awards-backend/src/setupTests.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
/*
* Copyright SeatGeek
* Licensed under the terms of the Apache-2.0 license. See LICENSE file in project root for terms.
*/
export {};
Loading

0 comments on commit 9d2bb04

Please sign in to comment.