Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit fa02242

Browse files
committed
ci(actions): use working-directory option
1 parent fbd2499 commit fa02242

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,14 @@ jobs:
4141
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
4242
restore-keys: ${{ runner.os }}-mix-
4343
- name: deps.get
44-
run: cd server; mix deps.get > /dev/null
44+
working-directory: ./server
45+
run: mix deps.get > /dev/null
4546
- name: set up test server
46-
run: cd server; MIX_ENV=ci mix ecto.setup > /dev/null
47+
working-directory: ./server
48+
run: MIX_ENV=ci mix ecto.setup > /dev/null
4749
- name: seed test data
48-
run: cd server; MIX_ENV=ci mix run priv/mock/cps_seeds.exs > /dev/null
50+
working-directory: ./server
51+
run: MIX_ENV=ci mix run priv/mock/cps_seeds.exs > /dev/null
4952

5053
setup-front:
5154
name: Setup Web Front
@@ -70,6 +73,7 @@ jobs:
7073
- name: Check Bundle Size
7174
run: BUNDLEWATCH_GITHUB_TOKEN=${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} npm run size.check
7275
- name: Run Backend Server
73-
run: cd server; MIX_ENV=ci mix phx.server &
76+
working-directory: ./server
77+
run: MIX_ENV=ci mix phx.server
7478
- name: Run Tests
7579
run: npm run test:ci

0 commit comments

Comments
 (0)