Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mayel committed Feb 13, 2024
1 parent 66a4335 commit dfb497f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,19 @@ jobs:
# - name: Remove mix.lock
# run: rm mix.lock
- name: Prepare environment
run: just pre-setup && just init &
run: just pre-setup && just init
- name: Install dependencies
run: mix deps.get
- name: Update Bonfire extensions to latest git versions (just use lockfile in future?)
run: mix bonfire.deps.update
- name: Fetch any differences in nested deps
run: mix deps.get
- name: Fetch any differences in nested deps (+ run post-install setup)
run: just deps-get && just pre-init
- name: Clean-build Bonfire data extensions
run: mix bonfire.deps.clean.data
- name: Compile deps & app
run: mix compile
- name: Set up database
run: just extension-post-install && mix ecto.create && mix ecto.migrate
run: mix ecto.create && mix ecto.migrate
- name: Run tests
run: mix test
- name: Check database down migrations
Expand Down
3 changes: 1 addition & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ setup-dev:
just deps-clean-api
just deps-clean-unused
just deps-get
just extension-post-install

extension-post-install:
just ext-migrations-copy
Expand Down Expand Up @@ -338,7 +337,7 @@ update-fork-path path cmd='pull' mindepth='0' maxdepth='1':
just deps-post-get
just js-deps-get

@deps-post-get:
@deps-post-get: extension-post-install
ln -sf ../../../priv/static extensions/bonfire/priv/static || ln -sf ../../../priv/static deps/bonfire/priv/static || echo "Could not find a priv/static dir to use"
-cd deps/bonfire/priv && ln -sf ../../../priv/repo
-cd extensions/bonfire/priv && ln -sf ../../../priv/repo
Expand Down

0 comments on commit dfb497f

Please sign in to comment.