From e08c206afe7fccae77ce7e9da00389601dd8d333 Mon Sep 17 00:00:00 2001 From: byeongsu-hong Date: Thu, 25 Jan 2024 16:04:18 +0900 Subject: [PATCH] pr and test --- .github/workflows/pr.yaml | 38 +++++++++++++++++++++++++++++++++++++ .github/workflows/test.yaml | 31 ------------------------------ 2 files changed, 38 insertions(+), 31 deletions(-) create mode 100644 .github/workflows/pr.yaml diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml new file mode 100644 index 00000000..dc64775f --- /dev/null +++ b/.github/workflows/pr.yaml @@ -0,0 +1,38 @@ +name: test + +on: + pull_request: + branches: + - "main" + +jobs: + artifact: + permissions: + contents: write + pull-requests: write + + name: artifact + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install Dependencies + run: | + rustup update 1.72 + sudo apt-get install -y rename + make install + + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Build wasm + run: make ci-build + + - name: Pull request artifacts + uses: gavv/pull-request-artifacts@v2 + with: + commit: ${{ github.event.pull_request.head.sha }} + repo-token: ${{ secrets.GITHUB_TOKEN }} + artifacts-branch: artifacts + artifacts: | + wasm_codes.zip diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ef8008c1..64160c5b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -43,37 +43,6 @@ jobs: - name: Run tests run: cargo test --workspace --exclude hpl-tests - artifact: - permissions: - contents: write - pull-requests: write - - name: artifact - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Install Dependencies - run: | - rustup update 1.72 - sudo apt-get install -y rename - make install - - - name: Setup Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Build wasm - run: make ci-build - - - name: Pull request artifacts - uses: gavv/pull-request-artifacts@v2 - with: - commit: ${{ github.event.pull_request.head.sha }} - repo-token: ${{ secrets.GITHUB_TOKEN }} - artifacts-branch: artifacts - artifacts: | - wasm_codes.zip - coverage: runs-on: ubuntu-latest env: