Del test build

This commit is contained in:
Jan Stabenow 2022-11-14 21:34:16 +01:00 committed by GitHub
parent 1b9cfa279f
commit 7fcc5bb65d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,47 +0,0 @@
name: Share data between jobs
on: [push]
jobs:
job_1:
name: Build react
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Use Node.js 19.0
uses: actions/setup-node@v1
with:
node-version: 19.0
- name: Switch yarn version
run: yarn set version berry
- name: Set httpTimeout
run: yarn config set httpTimeout 600000
- name: Install dependencies
run: yarn install
- name: Generate build
run: yarn run build
- name: Upload math result for job 1
uses: actions/upload-artifact@v3
with:
name: react-github-actions-build
path: build
job_2:
name: Multiply by 9
needs: job_1
runs-on: windows-latest
steps:
- name: Download math result for job 1
uses: actions/download-artifact@v3
with:
name: react-github-actions-build
- shell: bash
run: |
value=`cat math-homework.txt`
expr $value \* 9 > math-homework.txt
- name: Upload math result for job 2
uses: actions/upload-artifact@v3
with:
name: homework
path: math-homework.txt