Skip to content

Commit

Permalink
Remove yarn from github action
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinovega committed Oct 11, 2023
1 parent d9ca7fe commit dd71f76
Showing 1 changed file with 5 additions and 27 deletions.
32 changes: 5 additions & 27 deletions .github/workflows/front-office-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,43 +39,21 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: latest
cache: 'npm'
- uses: coursier/cache-action@v5
- name: initialize backend build
run: |
cd daikoku
sbt ';clean;compile'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: |
echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: CACHE ACTION
uses: actions/cache@v2
env:
cache-version: v1
id: yarn-cache
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
**/node_modules
~/.cache/Cypress
key: ${{ runner.os }}-yarn-${{ env.cache-version }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{ env.cache-version }}-
${{ runner.os }}-yarn-
${{ runner.os }}-
- name: Installing dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: |
cd daikoku/javascript
echo "YARN CACHE CHANGED"
rm -rf node_modules/
yarn install
npm install
- name: build javascript
run: |
cd daikoku/javascript
yarn build
npm run build
env:
NODE_OPTIONS: --max_old_space_size=4096
- name: Cypress run and publish report
Expand All @@ -85,7 +63,7 @@ jobs:
with:
browser: chrome
headless: true
start: yarn cypress:start:backend
start: npm run cypress:start:backend
wait-on: 'http://localhost:9000'
command: yarn test:cypress
command: npm run test:cypress
working-directory: daikoku/javascript

0 comments on commit dd71f76

Please sign in to comment.