chore(deps): update all non-major docker images #7880
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linting Code | |
on: | |
pull_request: | |
branches: [develop, main, feature/*] | |
jobs: | |
eslint_flow_merge: | |
name: eslint_merge | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' | |
steps: | |
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0 | |
- name: Node.JS 16 | |
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0 | |
with: | |
node-version: 16 | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1 | |
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: linux-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
linux-yarn- | |
- name: "Install dependencies" | |
run: yarn install:all | |
env: | |
CI: TRUE | |
- name: Test Code Linting on Merge | |
if: github.event_name == 'push' | |
run: yarn lint | |
# If there is an error stop here and fail the test | |
eslint_flow_pr: | |
name: eslint_pr | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' | |
steps: | |
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0 | |
- name: Node.JS 16 | |
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0 | |
with: | |
node-version: 16 | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1 | |
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: linux-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
linux-yarn- | |
- name: "Install dependencies" | |
run: yarn install:all --prefer-offline | |
env: | |
CI: TRUE | |
- name: Test Code Linting on Pull Request | |
run: yarn lint | |
continue-on-error: true | |
- name: Save Code Linting Report JSON | |
# npm script for ESLint | |
# eslint --output-file eslint_report.json --format json src | |
# See https://eslint.org/docs/user-guide/command-line-interface#options | |
run: yarn lint:report | |
# Continue to the next step even if this fails | |
continue-on-error: true | |
- name: Annotate Code Linting Results | |
uses: ataylorme/eslint-annotate-action@47568f60ae08ffa4d3b1bab645e21e9ae8266980 # tag=1.1.2 | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
report-json: "eslint_report.json" | |
continue-on-error: true | |
- name: Upload ESLint report | |
uses: actions/upload-artifact@3446296876d12d4e3a0f3145a3c87e67bf0a16b5 # tag=v1 | |
with: | |
name: eslint_report.json | |
path: eslint_report.json |