Skip to content

Commit

Permalink
refactor: ci.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav Gusain committed Feb 4, 2024
1 parent 548d6d7 commit 5519d60
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,23 @@
name: React App CI
# Controls when the action will run.
name: Ikea CI

on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel

jobs:
react-app-workflow:
# The type of runner that the job will run on
build:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job

steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
with:
fetch-depth: 0 # 👈 Required to retrieve git history
- name: Use Node.js 18.x
uses: actions/setup-node@v2
with:
node-version: 14.x
- name: npm ci
run: npm ci
- name: test
run: npm test
- name: format
run: npm run prettier
- name: lint
run: npm run lint
- name: typescript
run: npm run typescript
- name: build
run: npm run build --if-present
node-version: 18.x
cache: 'npm'
- run: npm ci
- run: npm run validate

0 comments on commit 5519d60

Please sign in to comment.