Skip to content

Commit

Permalink
Remove targeted test branch (#2)
Browse files Browse the repository at this point in the history
* Remove targeted test branch

* remove no longer relevant section in readme

* Remove no longer required branch name to fix importer test
  • Loading branch information
thomasm0 authored Aug 5, 2024
1 parent 4b83235 commit 2720f7c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
- develop
- cleanup
- feature/*
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ The starter contains the following scripts:
- `prepare` - script for setting up husky pre-commit hook
- `uninstall-husky` - script for removing husky from repository

### Settings

By default `npm run start` will fire up a dev server with a random port (often 5173). You can configure a constant port in the `vite.config.ts` file; there is commented code showing to configure the port. There are many other options available as documented in the [vite docs](https://vitejs.dev/config/).

## How to contribute to this repo?

Simply create and submit a pull request. You can also contact us via Teams (DV - Engineering Enablement) or Slack (#engineering-enablement).
Expand Down
3 changes: 1 addition & 2 deletions src/importer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ describe('importer', () => {
// modifying the esbuild command and creating an .env file
expect(mockedCloneAndCheckout).toHaveBeenCalledWith(
'git@github.com:Amsterdam/development-standards.git',
'docs/latest',
'feature/md-validation'
'docs/latest'
);
});
});
10 changes: 4 additions & 6 deletions src/importer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ const cloneDir = path.join(localDir, 'latest');

export async function app(savePath: string) {
// Clone the latest development-standards repo
await cloneAndCheckout(remoteUrl, cloneDir, 'feature/md-validation').then(
async () => {
const errors = await processDocumentDirectories(savePath, cloneDir);
outputResults(errors);
}
);
await cloneAndCheckout(remoteUrl, cloneDir).then(async () => {
const errors = await processDocumentDirectories(savePath, cloneDir);
outputResults(errors);
});
}

app(localDir).catch(console.error);

0 comments on commit 2720f7c

Please sign in to comment.