3939 python-version : " 3.8"
4040 - uses : actions/setup-node@v4
4141 with :
42- node-version : " 20 "
42+ node-version : " 24 "
4343 - name : Get node version
4444 id : node-version
4545 run : echo "::set-output name=node-version::$(node --version)"
@@ -88,10 +88,10 @@ jobs:
8888# if: github.event_name != 'pull_request'
8989# run: IMAGE_TAG=${GITHUB_REF##*/} docker compose -f docker-compose.build.yml push
9090
91- test :
92- name : Test
91+ build :
92+ name : Build
9393 runs-on : ubuntu-latest
94- needs : get-node-version
94+ needs : [ get-node-version, pre-commit]
9595 env :
9696 VITE_SITE_URL : ${{ vars.NEXT_PUBLIC_SITE_URL }}
9797 VITE_API_URL : ${{ vars.NEXT_PUBLIC_API_URL }}
@@ -116,53 +116,94 @@ jobs:
116116 run : yarn workspace @thunderstore/cyberstorm build
117117 - name : Build @thunderstore/cyberstorm-forms
118118 run : yarn workspace @thunderstore/cyberstorm-forms build
119- - name : Build and test @thunderstore/cyberstorm-remix
120- run : |
121- yarn workspace @thunderstore/cyberstorm-remix build
122- yarn workspace @thunderstore/cyberstorm-remix test run
123- # Enable once build process has been fixed.
124- # - name: Build @thunderstore/cyberstorm-storybook
125- # run: yarn workspace @thunderstore/cyberstorm-storybook build
119+ - name : Build @thunderstore/cyberstorm-remix
120+ run : yarn workspace @thunderstore/cyberstorm-remix build
121+ - name : Build @thunderstore/storybook
122+ run : yarn workspace @thunderstore/storybook build
126123 - name : Build @thunderstore/dapper
127124 run : yarn workspace @thunderstore/dapper build
128125 - name : Build @thunderstore/dapper-fake
129126 run : yarn workspace @thunderstore/dapper-fake build
130- - name : Build and test @thunderstore/dapper-ts
131- run : |
132- yarn workspace @thunderstore/dapper-ts build
133- yarn workspace @thunderstore/dapper-ts test
134- - name : Build and test @thunderstore/graph-system
135- run : |
136- yarn workspace @thunderstore/graph-system build
137- yarn workspace @thunderstore/graph-system test run
127+ - name : Build @thunderstore/dapper-ts
128+ run : yarn workspace @thunderstore/dapper-ts build
129+ - name : Build @thunderstore/graph-system
130+ run : yarn workspace @thunderstore/graph-system build
138131 - name : Build @thunderstore/react-dnd
139132 run : yarn workspace @thunderstore/react-dnd build
140- - name : Build and test @thunderstore/thunderstore-api
141- run : |
142- yarn workspace @thunderstore/thunderstore-api build
143- yarn workspace @thunderstore/thunderstore-api test
133+ - name : Build @thunderstore/thunderstore-api
134+ run : yarn workspace @thunderstore/thunderstore-api build
144135 - name : Build @thunderstore/ts-api-react
145136 run : yarn workspace @thunderstore/ts-api-react build
146137 - name : Build @thunderstore/ts-api-react-actions
147138 run : yarn workspace @thunderstore/ts-api-react-actions build
148139 - name : Build @thunderstore/ts-api-react-forms
149140 run : yarn workspace @thunderstore/ts-api-react-forms build
150- - name : Build and test @thunderstore/ts-uploader
151- # Add running tests once they've been fixed.
152- run : |
153- yarn workspace @thunderstore/ts-uploader build
141+ - name : Build @thunderstore/ts-uploader
142+ run : yarn workspace @thunderstore/ts-uploader build
154143 - name : Build @thunderstore/ts-uploader-react
155144 run : yarn workspace @thunderstore/ts-uploader-react build
156- - name : Build and test @thunderstore/typed-event-emitter
157- run : |
158- yarn workspace @thunderstore/typed-event-emitter build
159- yarn workspace @thunderstore/typed-event-emitter test
145+ - name : Build @thunderstore/typed-event-emitter
146+ run : yarn workspace @thunderstore/typed-event-emitter build
160147 - name : Build @thunderstore/use-promise
161148 run : yarn workspace @thunderstore/use-promise build
162149
150+ test :
151+ name : Test
152+ runs-on : ubuntu-latest
153+ needs : [get-node-version, pre-commit, build]
154+ env :
155+ VITE_SITE_URL : ${{ vars.NEXT_PUBLIC_SITE_URL }}
156+ VITE_API_URL : ${{ vars.NEXT_PUBLIC_API_URL }}
157+ VITE_AUTH_BASE_URL : ${{ vars.NEXT_PUBLIC_SITE_URL }}
158+ VITE_AUTH_RETURN_URL : ${{ vars.NEXT_PUBLIC_SITE_URL }}
159+ steps :
160+ - name : " Checkout"
161+ uses : actions/checkout@v4
162+ - name : " Setup Python 3.10"
163+ id : setup-python
164+ uses : actions/setup-python@v5
165+ with :
166+ python-version : " 3.10"
167+ - name : Set up Node 24
168+ uses : actions/setup-node@v4
169+ with :
170+ node-version : " 24"
171+ cache : " yarn"
172+ - name : Set fontawesome token
173+ run : |
174+ npm config set "@fortawesome:registry" https://npm.fontawesome.com/
175+ npm config set "//npm.fontawesome.com/:_authToken" ${{ secrets.NPM_FA_TOKEN }}
176+ - uses : snok/install-poetry@v1
177+ with :
178+ version : 1.4.1
179+ virtualenvs-create : true
180+ virtualenvs-in-project : true
181+ - name : Cache poetry venv
182+ id : cache-poetry
183+ uses : actions/cache@v4
184+ with :
185+ path : tools/test-ci/.venv
186+ key : " poetry-${{ runner.os }}-\
187+ ${{ steps.setup-python.outputs.python-version }}-\
188+ ${{ hashFiles('tools/test-ci/poetry.lock') }}"
189+ restore-keys : |
190+ poetry-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-
191+ - name : Install poetry dependencies
192+ run : |
193+ cd tools/test-ci/
194+ poetry install
195+ - name : Run testing script
196+ run : |
197+ cd tools/test-ci/
198+ poetry run python run_ci_script.py
199+ - name : Upload results to Codecov
200+ uses : codecov/codecov-action@v5
201+ with :
202+ token : ${{ secrets.CODECOV_TOKEN }}
203+
163204 chromatic-deployment :
164205 runs-on : ubuntu-latest
165- needs : ["test", " pre-commit", "get-node-version" ]
206+ needs : [get-node-version, pre-commit, build, test ]
166207 strategy :
167208 matrix :
168209 projects : [
0 commit comments