File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939 contents : read
4040 packages : write
4141 steps :
42- - uses : actions/checkout@v4
42+ - uses : actions/checkout@v5
4343 with :
4444 ref : ${{ inputs.new_ref }}
4545
Original file line number Diff line number Diff line change 2525 build :
2626 runs-on : ubuntu-latest
2727 steps :
28- - name : Checkout
29- uses : actions/checkout@v4
28+ - uses : actions/checkout@v5
3029
3130 - name : Setup Hugo
3231 uses : peaceiris/actions-hugo@v3
Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ jobs:
2929 app : ${{ steps.new_app.outputs.new_version }}
3030 new_ref : ${{ steps.commit.outputs.commit }}
3131 steps :
32- - uses : actions/checkout@v4
32+ - uses : actions/checkout@v5
3333
3434 - name : Current versions
3535 id : version
3636 run : |
37- echo "app=$(grep -oP '(?<=^version = ")[\w\.]+' Cargo.toml)" >> $GITHUB_OUTPUT
38- echo "chart=$(grep -oP '(?<=^version: ).+' chart/Chart.yaml)" >> $GITHUB_OUTPUT
37+ echo "app=$(grep -oP '(?<=^version = ")[\w\.]+' Cargo.toml)" >> " $GITHUB_OUTPUT"
38+ echo "chart=$(grep -oP '(?<=^version: ).+' chart/Chart.yaml)" >> " $GITHUB_OUTPUT"
3939
4040 - uses : actions-ecosystem/action-bump-semver@v1
4141 id : new_app
7676 - default
7777 - kube
7878 steps :
79- - uses : actions/checkout@v4
79+ - uses : actions/checkout@v5
8080 with :
8181 ref : ${{ needs.bump.outputs.new_ref }}
8282
8787 uses : actions-rust-lang/setup-rust-toolchain@v1
8888 with :
8989 target : ${{ matrix.target.triplet }}
90- cache : true # Sets up rust cache automatically
90+ cache : true # Sets up rust cache automatically
9191
9292 - name : Compile
9393 run : |
@@ -141,7 +141,7 @@ jobs:
141141 contents : read
142142 packages : write
143143 steps :
144- - uses : actions/checkout@v4
144+ - uses : actions/checkout@v5
145145 with :
146146 ref : ${{ needs.bump.outputs.new_ref }}
147147
Original file line number Diff line number Diff line change @@ -26,10 +26,15 @@ jobs:
2626 test :
2727 runs-on : ubuntu-latest
2828 steps :
29- - uses : actions/checkout@v4
29+ - uses : actions/checkout@v5
3030 - uses : cachix/install-nix-action@v31
3131 with :
3232 nix_path : nixpkgs=channel:nixos-unstable
3333
34+ - uses : Swatinem/rust-cache@v2
35+ with :
36+ cache-all-crates : " true"
37+ cache-on-failure : " true"
38+ save-if : ${{ github.ref == 'refs/heads/main' }}
3439 - name : Test
3540 run : nix develop --command bash -c "yarn install && yarn test"
Original file line number Diff line number Diff line change 1515 "tailwind-dev" : " tailwindcss --input static/css/main.css --output static/main.build.css --watch" ,
1616 "webpack-dev" : " webpack watch --mode development" ,
1717
18- "start-e2e" : " concurrently 'npm:start-server' 'npm:e2e-server'" ,
18+ "start-e2e" : " concurrently 'npm:start-server' 'npm:e2e-server' || exit 0 " ,
1919 "start-server" : " RUST_LOG_STYLE=always CONFIG_FILE=config.sample.yaml watchexec --debounce 2 --watch ./Cargo.toml --watch ./src --watch ./static --watch ./benches --restart cargo run --color always --features e2e-test" ,
2020 "start-test" : " RUST_LOG_STYLE=always watchexec --debounce 2 --watch ./Cargo.toml --watch ./src --watch ./static --watch ./benches --restart cargo test --color always --features kube" ,
2121 "e2e-server" : " http-server hurl -p 8081" ,
You can’t perform that action at this time.
0 commit comments