diff --git a/.github/workflows/eslint.yaml b/.github/workflows/eslint.yaml index f636117..af3ef57 100644 --- a/.github/workflows/eslint.yaml +++ b/.github/workflows/eslint.yaml @@ -1,10 +1,8 @@ -name: pull request - +name: Linting on: pull_request: push: branches: [main] - jobs: formatting: timeout-minutes: 15 @@ -12,12 +10,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - - name: Setup Node.js uses: actions/setup-node@v3 - + with: + node-version: 16 - name: Install Dependencies - run: npm i - + run: yarn install - name: Check Eslint - run: npm run eslint + run: yarn eslint diff --git a/.github/workflows/formatting.yaml b/.github/workflows/formatting.yaml index 97608b5..25177e3 100644 --- a/.github/workflows/formatting.yaml +++ b/.github/workflows/formatting.yaml @@ -1,10 +1,6 @@ -name: pull request - +name: Formatting on: pull_request: - push: - branches: [main] - jobs: formatting: timeout-minutes: 15 @@ -12,12 +8,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - - name: Setup Node.js uses: actions/setup-node@v3 - + with: + node-version: 16 - name: Install Dependencies - run: npm i - + run: yarn Install - name: Check Formatting - run: npm run format + run: yarn prettier --check .