Repository navigation
62 lines (62 loc) · 1.75 KB
/
Copy pathci.yml
File metadata and controls
62 lines (62 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Build & Test
'on':
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
push:
branches:
- main
workflow_dispatch: null
permissions:
contents: read
attestations: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
name: Test
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- name: Check out source
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- name: Set up development tools
uses: nicodes/tools/setup@a1c0321f3b4917a7e99eca42e241e46670f6e1e1
env:
GH_TOKEN: ${{ github.token }}
timeout-minutes: 5
- name: Record tested integration identity
if: github.event_name == 'pull_request'
env:
EXPECTED_HEAD: ${{ github.event.pull_request.head.sha }}
run: python3 "$TOOLS_ROOT/helpers/integration-identity.py"
- name: Upload artifacts
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
with:
name: fleet-integration-${{ github.run_id }}-${{ github.run_attempt }}
path: .artifacts/fleet-integration.json
if-no-files-found: error
retention-days: 7
include-hidden-files: true
- name: Check project
shell: bash
run: |-
set -euo pipefail
mise run check
- name: Upload artifacts
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
with:
name: tested-redirect-${{ github.sha }}
path: .artifacts/dist/
if-no-files-found: error
retention-days: 7
include-hidden-files: true
env:
MISE_GITHUB_TOKEN: ${{ github.token }}