This commit is contained in:
parent
514488e20e
commit
ee2a75c4df
@ -1,16 +1,18 @@
|
||||
# Run pipeline on pushes to main
|
||||
when:
|
||||
event: push
|
||||
branch: main
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: debian
|
||||
- name: install
|
||||
image: node:18-alpine
|
||||
commands:
|
||||
- echo "This is the build step"
|
||||
- echo "binary-data-123" > executable
|
||||
- chmod +x executable
|
||||
- echo "🔧 Installing dependencies..."
|
||||
- npm install
|
||||
|
||||
- name: a-test-step
|
||||
image: golang:1.16
|
||||
- name: test
|
||||
image: node:18-alpine
|
||||
commands:
|
||||
- echo "Testing ..."
|
||||
- ls -l
|
||||
- cat executable || echo "File missing!"
|
||||
- ./executable
|
||||
- echo "🧪 Running tests..."
|
||||
- npm test
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user