Skip to content

Commit

Permalink
chore: yarn used for dependency management in github action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gobeam committed Aug 1, 2022
1 parent fefe0e2 commit 7def76f
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,21 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Setup yarn
run: npm install -g yarn

- name: Setup Nodejs with yarn caching
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: yarn

- name: Install dependencies
run: npm install
run: yarn

- name: Run unit test
run: npm run test:unit
run: yarn test:unit

e2e-test:
runs-on: ubuntu-latest
Expand All @@ -34,15 +44,23 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Setup yarn
run: npm install -g yarn

- name: Setup Nodejs with yarn caching
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: Set Environment Variables
uses: ./.github/actions/setvars
with:
varFilePath: ./.github/variables/myvars.env
- name: Start Docker-Compose
run: docker-compose -f docker-compose-test.yml up -d
- name: Install dependencies
run: npm install
run: yarn
- name: Run tests
run: npm run test:e2e
run: yarn test:e2e
- name: Stop Docker-Compose
run: docker-compose -f docker-compose-test.yml down

0 comments on commit 7def76f

Please sign in to comment.