Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MatiasG19 committed Apr 21, 2024
1 parent 240c2cf commit bf0a814
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: "3.x"

- name: Setup Clang Formatter
uses: actions/checkout@v3
Expand All @@ -56,33 +56,17 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "YARN_CACHE_DIR_PATH=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Cache yarn dependencies
uses: actions/cache@v3
id: yarn-cache
uses: actions/setup-node@v4
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.YARN_CACHE_DIR_PATH }}
**/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: 20.x

- name: Install dependecies
working-directory: ${{ env.WEB_PATH }}
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
run: npm ci

- name: Check format
working-directory: ${{ env.WEB_PATH }}
run: yarn check-format
run: npm run check-format

0 comments on commit bf0a814

Please sign in to comment.