From 4df6e9c8a3fbd22796ab6814a2eb0bb4784bc6f9 Mon Sep 17 00:00:00 2001 From: shiveshdewangan Date: Tue, 7 Jan 2025 11:32:01 +1100 Subject: [PATCH 1/3] Create main.yml --- .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 db3630477d2165ef8c7704b0c3dee58c964f4b14 Mon Sep 17 00:00:00 2001 From: shiveshdewangan Date: Tue, 7 Jan 2025 11:45:58 +1100 Subject: [PATCH 2/3] Update main.yml --- .github/workflows/main.yml | 77 +++++++++++++++++++++----------------- 1 file changed, 43 insertions(+), 34 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d12a5f6a..cf1599be 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,34 +1,43 @@ -# 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 + # Name of workflow + name: Lint and Test workflow + + # Trigger workflow on all pull requests + on: + pull_request: + branches: + - develop + - staging + - main + + # 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 20.x + uses: actions/setup-node@v1 + with: + node-version: 20.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: Test + run: npm run test From 54838e5433bf1c0bd87f29d1675c8e9258717860 Mon Sep 17 00:00:00 2001 From: shiveshdewangan Date: Tue, 7 Jan 2025 11:54:24 +1100 Subject: [PATCH 3/3] Update main.yml --- .github/workflows/main.yml | 85 +++++++++++++++++++------------------- 1 file changed, 42 insertions(+), 43 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cf1599be..408540b5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,43 +1,42 @@ - # Name of workflow - name: Lint and Test workflow - - # Trigger workflow on all pull requests - on: - pull_request: - branches: - - develop - - staging - - main - - # 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 20.x - uses: actions/setup-node@v1 - with: - node-version: 20.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: Test - run: npm run test +# 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