From ba0d738add50e5da734b1c47b7250f2e57b9ab08 Mon Sep 17 00:00:00 2001 From: David Fuka Date: Thu, 13 Mar 2025 18:59:31 -0700 Subject: [PATCH 1/2] Added yml --- .github/workflows/main.yml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..408540b5 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,42 @@ +# Name of workflow +name: Lint and Test workflow + +# Trigger workflow on all pull requests +on: + pull_request: + branches: + - develop + - staging + +# Jobs to carry out +jobs: + test: + # Operating system to run job on + runs-on: ubuntu-latest + + # Steps in job + steps: + # Get code from repo + - name: Checkout code + uses: actions/checkout@v1 + + - name: Use Node.js 21.x + uses: actions/setup-node@v1 + with: + node-version: 21.x + + # Install dependencies + - name: 🧰 Install Deps + run: npm install + + # Run lint + - name: Run Lint + run: npm run lint + + # Run build + - name: Run Build + run: npm run build + + # Run tests + - name: Run Tests + run: npm run test From a1b9d83a03b5a352e076468fba5f1d8e8041ab5c Mon Sep 17 00:00:00 2001 From: David Fuka Date: Thu, 13 Mar 2025 19:03:12 -0700 Subject: [PATCH 2/2] added ; --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 4d01c224..61038088 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -19,6 +19,6 @@ function App() { ) -} +}; export default App;