|
10 | 10 | - "main" |
11 | 11 |
|
12 | 12 | env: |
| 13 | + PROJECT_NAME: http-server |
13 | 14 | JUST_VERSION: "1.36.0" |
14 | 15 |
|
15 | 16 | jobs: |
16 | 17 | test: |
17 | 18 | name: 🧪 Test |
18 | 19 | runs-on: ubuntu-24.04 |
19 | 20 | steps: |
20 | | - - uses: actions/checkout@v4 |
21 | | - with: { submodules: true } |
| 21 | + - { uses: actions/checkout@v4, with: { submodules: true } } |
22 | 22 | - run: source ./.github/install-scripts/just/main.ps1 |
23 | 23 | - run: source ./.github/install-scripts/rust/main.ps1 |
24 | 24 | - run: just test |
|
27 | 27 | name: 📝 Format |
28 | 28 | runs-on: ubuntu-24.04 |
29 | 29 | steps: |
30 | | - - uses: actions/checkout@v4 |
31 | | - with: { submodules: true } |
| 30 | + - { uses: actions/checkout@v4, with: { submodules: true } } |
32 | 31 | - run: source ./.github/install-scripts/just/main.ps1 |
33 | 32 | - run: source ./.github/install-scripts/rust/main.ps1 |
34 | 33 | - run: just fmt |
|
37 | 36 | name: 🤓 Lint |
38 | 37 | runs-on: ubuntu-24.04 |
39 | 38 | steps: |
40 | | - - uses: actions/checkout@v4 |
41 | | - with: { submodules: true } |
| 39 | + - { uses: actions/checkout@v4, with: { submodules: true } } |
42 | 40 | - run: source ./.github/install-scripts/just/main.ps1 |
43 | 41 | - run: source ./.github/install-scripts/rust/main.ps1 |
44 | 42 | - run: just lint |
|
86 | 84 | name: ${{ matrix.config.name }} |
87 | 85 | runs-on: ${{ matrix.config.runner }} |
88 | 86 | steps: |
89 | | - - uses: actions/checkout@v4 |
90 | | - with: { submodules: true } |
| 87 | + - { uses: actions/checkout@v4, with: { submodules: true } } |
91 | 88 | - run: . ./.github/install-scripts/just/main.ps1 |
92 | 89 | - run: . ./.github/install-scripts/rust/main.ps1 && rustup target add ${{ matrix.config.rustup_target }} |
93 | 90 | - env: |
|
97 | 94 | run: just build |
98 | 95 | - uses: actions/upload-artifact@v4 |
99 | 96 | with: |
100 | | - name: http-server-${{ matrix.config.os }}-${{ matrix.config.arch }} |
| 97 | + name: ${{ env.PROJECT_NAME }}-${{ matrix.config.os }}-${{ matrix.config.arch }} |
101 | 98 | path: ${{ github.workspace }}/target/${{ matrix.config.os }}-${{ matrix.config.arch }}/**/* |
102 | 99 | if-no-files-found: error |
103 | 100 | retention-days: 1 |
|
0 commit comments