Move CI commands into the run file
This commit is contained in:
parent
1b5a341c9e
commit
78c181979a
9
.github/workflows/main.yaml
vendored
9
.github/workflows/main.yaml
vendored
|
@ -19,18 +19,15 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: nix develop --command composer install
|
||||
run: ./run ci:install
|
||||
|
||||
- name: Run tests
|
||||
run: nix develop --command ./run test --testdox --colors=always
|
||||
run: ./run ci:test
|
||||
|
||||
- name: Generate the website
|
||||
run: |
|
||||
nix develop --command ./run generate
|
||||
./run ci:build
|
||||
tree output_prod
|
||||
env:
|
||||
APP_ENV: prod
|
||||
NODE_ENV: production
|
||||
|
||||
- name: Install the deploy key and known hosts
|
||||
run: |
|
||||
|
|
12
run.local
12
run.local
|
@ -1,5 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
function ci:build {
|
||||
APP_ENV=prod nix develop --command ./run generate
|
||||
}
|
||||
|
||||
function ci:install {
|
||||
nix develop --command composer install
|
||||
}
|
||||
|
||||
function ci:test {
|
||||
nix develop --command ./run test --testdox --colors=always
|
||||
}
|
||||
|
||||
function clean {
|
||||
rm -fr output_*/ source/build/
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue