chore: revert e2e changes

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-12-21 11:09:59 +01:00
parent 78b593f9ad
commit 3357d8bc89
3 changed files with 7 additions and 34 deletions
+7 -15
View File
@@ -25,21 +25,17 @@ jobs:
node-version: 16.x
registry-url: https://registry.npmjs.org/
- name: backstage create-app | delete if already exists
- name: yarn install
run: |
rm -rf ./example-app
node ./packages/e2e-test/.bin/e2e-test create -o ./example-app
env:
BACKSTAGE_APP_NAME: example-app
yarn install
- name: Use Uffizzi's backstage app config
run: |
cp -f ./backstage/.github/uffizzi/uffizzi.production.app-config.yaml ./app-config.production.yaml;
- name: yarn build
run: |
yarn build:all
working-directory: ./example-app
- name: Use Uffizzi's backstage app config
run: |
cp ./backstage/.github/uffizzi/uffizzi.production.app-config.yaml ./example-app/app-config.production.yaml;
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
@@ -55,15 +51,11 @@ jobs:
images: registry.uffizzi.com/${{ env.UUID_TAG_APP }}
tags: type=raw,value=60d
- name: Add examples directory to Dockerfile
run: |
echo "COPY examples /examples" >> ./example-app/packages/backend/Dockerfile
- name: Build Image
uses: docker/build-push-action@v2
with:
context: example-app
file: example-app/packages/backend/Dockerfile
file: packages/backend/Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: true
-1
View File
@@ -19,5 +19,4 @@ import { run, create } from './run';
export function registerCommands(program: Command) {
program.command('run').description('Run e2e tests').action(run);
program.command('create').option('-o, --output <path>').action(create);
}
-18
View File
@@ -43,24 +43,6 @@ const templatePackagePaths = [
'packages/create-app/templates/default-app/packages/backend/package.json.hbs',
];
export async function create({ output }: { output: string }) {
const outputDir = resolvePath(process.cwd(), output);
const rootDir = await fs.mkdtemp(resolvePath(os.tmpdir(), 'backstage-e2e-'));
print(`CLI E2E test root: ${rootDir}\n`);
print('Building dist workspace');
const workspaceDir = await buildDistWorkspace('workspace', rootDir);
// // Otherwise yarn will refuse to install with CI=true
process.env.YARN_ENABLE_IMMUTABLE_INSTALLS = 'false';
print('Creating a Backstage App');
const appDir = await createApp('test-app', workspaceDir, rootDir);
await fs.move(appDir, outputDir, { overwrite: true });
}
export async function run() {
const rootDir = await fs.mkdtemp(resolvePath(os.tmpdir(), 'backstage-e2e-'));
print(`CLI E2E test root: ${rootDir}\n`);