Skip to content

Commit 0633d69

Browse files
committed
return tests
1 parent 7d4c564 commit 0633d69

File tree

1 file changed

+64
-64
lines changed

1 file changed

+64
-64
lines changed

.github/workflows/master.yml

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -36,82 +36,82 @@ jobs:
3636
with:
3737
fetch-depth: 0 # Fetch complete history for better caching
3838

39-
# - name: Setup Elixir
40-
# uses: erlef/setup-beam@v1
41-
# with:
42-
# otp-version: "27.2"
43-
# elixir-version: "1.18.3"
44-
45-
# - name: Cache Dependencies
46-
# uses: actions/cache@v4
47-
# id: deps-cache
48-
# with:
49-
# path: |
50-
# ./services/app/deps
51-
# ./services/app/_build
52-
# key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
53-
# restore-keys: |
54-
# ${{ runner.os }}-mix-
55-
56-
# - name: Get deps
57-
# run: |
58-
# mix local.hex --force
59-
# mix local.rebar --force
60-
# mix deps.get
61-
# working-directory: ./services/app
39+
- name: Setup Elixir
40+
uses: erlef/setup-beam@v1
41+
with:
42+
otp-version: "27.2"
43+
elixir-version: "1.18.3"
6244

63-
# - name: Mix deps.compile
64-
# run: mix compile --warnings-as-errors
65-
# working-directory: ./services/app
45+
- name: Cache Dependencies
46+
uses: actions/cache@v4
47+
id: deps-cache
48+
with:
49+
path: |
50+
./services/app/deps
51+
./services/app/_build
52+
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
53+
restore-keys: |
54+
${{ runner.os }}-mix-
55+
56+
- name: Get deps
57+
run: |
58+
mix local.hex --force
59+
mix local.rebar --force
60+
mix deps.get
61+
working-directory: ./services/app
6662

67-
# - name: Mix format
68-
# run: mix format --check-formatted
69-
# working-directory: ./services/app
63+
- name: Mix deps.compile
64+
run: mix compile --warnings-as-errors
65+
working-directory: ./services/app
7066

71-
# - name: Mix credo
72-
# run: mix credo
73-
# working-directory: ./services/app
67+
- name: Mix format
68+
run: mix format --check-formatted
69+
working-directory: ./services/app
7470

75-
# - name: Get yarn cache
76-
# id: yarn-cache
77-
# run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
71+
- name: Mix credo
72+
run: mix credo
73+
working-directory: ./services/app
7874

79-
# - uses: actions/cache@v4
80-
# with:
81-
# path: ${{ steps.yarn-cache.outputs.dir }}
82-
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
83-
# restore-keys: |
84-
# ${{ runner.os }}-yarn-
75+
- name: Get yarn cache
76+
id: yarn-cache
77+
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
8578

86-
# - name: Install yarn dependencies
87-
# run: yarn install --frozen-lockfile --network-timeout 300000
88-
# working-directory: ./services/app/apps/codebattle
79+
- uses: actions/cache@v4
80+
with:
81+
path: ${{ steps.yarn-cache.outputs.dir }}
82+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
83+
restore-keys: |
84+
${{ runner.os }}-yarn-
8985
90-
# - name: Eslint
91-
# run: yarn lint
92-
# working-directory: ./services/app/apps/codebattle
86+
- name: Install yarn dependencies
87+
run: yarn install --frozen-lockfile --network-timeout 300000
88+
working-directory: ./services/app/apps/codebattle
9389

94-
# - name: Run jest
95-
# run: yarn test
96-
# working-directory: ./services/app/apps/codebattle
90+
- name: Eslint
91+
run: yarn lint
92+
working-directory: ./services/app/apps/codebattle
9793

98-
# - name: Mix audit
99-
# run: mix hex.audit
100-
# working-directory: ./services/app
94+
- name: Run jest
95+
run: yarn test
96+
working-directory: ./services/app/apps/codebattle
10197

102-
# - name: Setup db
103-
# run: mix ecto.create && mix ecto.migrate
104-
# working-directory: ./services/app
98+
- name: Mix audit
99+
run: mix hex.audit
100+
working-directory: ./services/app
101+
102+
- name: Setup db
103+
run: mix ecto.create && mix ecto.migrate
104+
working-directory: ./services/app
105105

106-
# - name: Mix tests
107-
# run: make test
106+
- name: Mix tests
107+
run: make test
108108

109-
# - name: Upload coverage to Codecov
110-
# uses: codecov/codecov-action@v3
111-
# with:
112-
# token: ${{ secrets.CODECOV_TOKEN }}
113-
# file: ./services/app/assp/codebattle/cover/excoveralls.json
114-
# fail_ci_if_error: false
109+
- name: Upload coverage to Codecov
110+
uses: codecov/codecov-action@v3
111+
with:
112+
token: ${{ secrets.CODECOV_TOKEN }}
113+
file: ./services/app/assp/codebattle/cover/excoveralls.json
114+
fail_ci_if_error: false
115115

116116
- name: Login to Docker Hub
117117
uses: docker/login-action@v3

0 commit comments

Comments
 (0)