Skip to content

Commit

Permalink
feat: ci definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Barber0 committed Jan 30, 2024
1 parent c35ccbf commit e2f4ca1
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/aspect-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Aspect Test

on:
push:
branches: [ ci_test ]
pull_request:
branches: [ ci_test ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Aspect Test
run: |
docker run --name testenv -e -d simonalphafang/aspect-tooling:0.0.3 tail -f /dev/null
docker exec -i testenv bash <<EOF
source ~/.nvm/nvm.sh
set -ex
cd /aspect-tooling/packages/testcases
sed -i "s|\"node\": \".*\"|\"node\": \"http://47.254.27.97:8545\"|g" project.config.json && cat project.config.json
node scripts/create-account.cjs --skfile attack_accounts.txt
node scripts/create-account.cjs --skfile privateKey.txt
node scripts/create-account.cjs --skfile aspect_accounts.txt
# node scripts/transfer.cjs --skfile attack_accounts.txt
# node scripts/transfer.cjs --skfile privateKey.txt
# node scripts/transfer.cjs --skfile aspect_accounts.txt
# cd tests
# node type-check-aspect.test.js
EOF

0 comments on commit e2f4ca1

Please sign in to comment.