|
8 | 8 | name: Test alertmanager frontend |
9 | 9 | runs-on: ubuntu-latest |
10 | 10 | steps: |
11 | | - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 11 | + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
| 12 | + with: |
| 13 | + persist-credentials: false |
| 14 | + - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 |
| 15 | + with: |
| 16 | + node-version-file: './.nvmrc' |
| 17 | + cache: 'npm' |
| 18 | + cache-dependency-path: | |
| 19 | + .nvmrc |
| 20 | + **/package-lock.json |
12 | 21 | - run: make clean |
13 | 22 | - run: make all |
14 | 23 | working-directory: ./ui/app |
15 | 24 | - run: make assets |
16 | 25 | - run: make apiv2 |
17 | 26 | - run: git diff --exit-code |
| 27 | + - run: make assets-tarball |
| 28 | + - uses: prometheus/promci-artifacts/save@f9a587dbc0b2c78a0c54f8ad1cde71ea29a4b76f # v0.1.0 |
| 29 | + with: |
| 30 | + directory: .tarballs |
| 31 | + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v4.6.2 |
| 32 | + with: |
| 33 | + name: ui-dist |
| 34 | + path: ui/app/dist |
| 35 | + include-hidden-files: true |
18 | 36 |
|
19 | 37 | build: |
20 | 38 | name: Build Alertmanager for common architectures |
| 39 | + needs: [test_frontend] |
21 | 40 | runs-on: ubuntu-latest |
22 | 41 | strategy: |
23 | 42 | matrix: |
24 | 43 | thread: [0, 1, 2] |
25 | 44 | steps: |
26 | | - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4.0.0 |
27 | | - - uses: prometheus/promci@fc721ff8497a70a93a881cd552b71af7fb3a9d53 # v0.5.4 |
28 | | - - uses: ./.github/promci/actions/build |
| 45 | + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v4.0.0 |
| 46 | + with: |
| 47 | + persist-credentials: false |
| 48 | + - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 |
| 49 | + with: |
| 50 | + name: ui-dist |
| 51 | + path: ui/app/dist |
| 52 | + - uses: prometheus/promci/build@13941414d409d227afd67544e5d306827db5a1a2 # v0.8.5 |
29 | 53 | with: |
30 | 54 | promu_opts: "-p linux/amd64 -p windows/amd64 -p linux/arm64 -p darwin/amd64 -p darwin/arm64 -p linux/386" |
31 | 55 | parallelism: 3 |
|
34 | 58 | test: |
35 | 59 | name: Test |
36 | 60 | runs-on: ubuntu-latest |
| 61 | + needs: [test_frontend] |
37 | 62 | # Whenever the Go version is updated here, .promu.yml |
38 | 63 | # should also be updated. |
39 | 64 | container: |
|
51 | 76 | EMAIL_NO_AUTH_CONFIG: testdata/noauth.yml |
52 | 77 | EMAIL_AUTH_CONFIG: testdata/auth.yml |
53 | 78 | steps: |
54 | | - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
55 | | - - uses: prometheus/promci@fc721ff8497a70a93a881cd552b71af7fb3a9d53 # v0.5.4 |
56 | | - - uses: ./.github/promci/actions/setup_environment |
| 79 | + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
| 80 | + with: |
| 81 | + persist-credentials: false |
| 82 | + - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 |
| 83 | + with: |
| 84 | + name: ui-dist |
| 85 | + path: ui/app/dist |
| 86 | + - uses: prometheus/promci-setup@3e5cd31b34b8ae19efa8f071c5e3cdb44884a7f8 # v0.2.1 |
57 | 87 | - run: make |
58 | 88 | - run: git diff --exit-code |
0 commit comments