try #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Workflow | |
on: [push] | |
jobs: | |
es-node-integration-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Build and Run Bootnode Node | |
run: | | |
echo "Test Build and Run Bootnode Node" > es-node-it-bootnode.log& | |
- name: Upload Blobs | |
run: | | |
mkdir integration | |
echo "Test Upload Blobs" > ./integration/upload.log | |
- name: Test | |
run: | | |
echo "Test ES-Node" > es-node-it.log& | |
echo "Test ItServer" > ./cmd/integration-test-server/itserver.log | |
- name: Upload Logs | |
uses: actions/upload-artifact@v4 | |
if: always() # 无论上一步是否失败,都会执行这个步骤 | |
with: | |
name: result-log | |
path: | | |
deploy.log | |
es-node-it-bootnode.log | |
./integration/upload.log | |
es-node-it.log | |
./cmd/integration-test-server/itserver.log | |