From 4ef2323bc802de9806746e3ac8cd8fef687dea78 Mon Sep 17 00:00:00 2001 From: JohnBrunson Date: Thu, 13 Mar 2025 18:52:14 -0700 Subject: [PATCH 1/2] Adding a github action --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 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..d12a5f6a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +# Name of workflow +name: Lint 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 From 5152548b6d036ddd89da67ba3d66c21aebb08cb9 Mon Sep 17 00:00:00 2001 From: JohnBrunson Date: Thu, 13 Mar 2025 19:29:35 -0700 Subject: [PATCH 2/2] removed github action --- .github/workflows/main.yml | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index d12a5f6a..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,34 +0,0 @@ -# Name of workflow -name: Lint 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