Skip to content

Commit

Permalink
pr and test
Browse files Browse the repository at this point in the history
  • Loading branch information
byeongsu-hong committed Jan 25, 2024
1 parent 6595945 commit e08c206
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 31 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -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
31 changes: 0 additions & 31 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e08c206

Please sign in to comment.