diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..b3b8e8b6 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +{ + "name": "Lint workflow", + "on": { + "pull_request": { + "branches": ["develop", "staging"] + } + }, + "jobs": { + "test": { + "runs-on": "ubuntu-latest", + "steps": [ + { + "name": "Checkout code", + "uses": "actions/checkout@v1" + }, + { + "name": "Use Node.js 21.x", + "uses": "actions/setup-node@v1", + "with": { + "node-version": "21.x" + } + }, + { + "name": "🧰 install deps", + "run": "npm install" + }, + { + "name": "Run lint", + "run": "npm run lint" + } + ] + } + } +} \ No newline at end of file diff --git a/README.md b/README.md index 86e87472..b36556c1 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,6 @@ GitHub Actions is a great solution to this problem. For example, you could creat ## Initial Project Setup -TODO: this definitely doesn't work To begin, start by forking the following repository [GitHub Actions Demo](https://github.com/coding-boot-camp/github-actions-demo). Once you have forked this repository you should then clone the forked repository to your local machine. ## Create the Workflow diff --git a/src/components/Advertisement.tsx b/src/components/Advertisement.tsx index 2181f6aa..bb55bcb2 100644 --- a/src/components/Advertisement.tsx +++ b/src/components/Advertisement.tsx @@ -2,7 +2,7 @@ interface AdvertisementProps { companyName: string; productDescription: string; price: string; -}; +} function Advertisement(props: AdvertisementProps) { return (