-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNew
83 lines (57 loc) · 1.49 KB
/
New
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: my-first-group1875709/migration-testing/test-1
on:
push:
workflow_dispatch:
concurrency:
group: "${{ github.ref }}"
cancel-in-progress: true
jobs:
build-laptop:
runs-on: ubuntu-latest
container:
image: alpine
timeout-minutes: 60
env:
BUILD_FILE_NAME: laptop.txt
steps:
- name: Install Git
run: apk add --no-cache git
- name: Checkout repository
uses: actions/checkout@v4.1.0
with:
fetch-depth: 20
- run: echo "I am making Laptop 22"
- run: mkdir build
- run: echo "Mainboard" >> build/$BUILD_FILE_NAME
- run: cat build/$BUILD_FILE_NAME
- run: echo "Keyboard" >> build/$BUILD_FILE_NAME
- run: cat build/$BUILD_FILE_NAME
- name: Upload artifact
uses: actions/upload-artifact@v4.1.0
if: success()
with:
name: build-artifact
path: build
test-laptop:
needs: build-laptop
runs-on: ubuntu-latest
container:
image: alpine
timeout-minutes: 60
env:
BUILD_FILE_NAME: laptop.txt
steps:
- name: Install Git
run: apk add --no-cache git
- name: Checkout repository
uses: actions/checkout@v4.1.0
with:
fetch-depth: 20
- name: Download artifact
uses: actions/download-artifact@v4.1.0
with:
name: build-artifact
path: build
- run: test -f build/$BUILD_FILE_NAME
- run: grep "Mainboard" build/$BUILD_FILE_NAME
- run: grep "Keyboard" build/$BUILD_FILE_NAME