Skip to content

check config module #10

check config module

check config module #10

Workflow file for this run

name: Testing Workflow
on:
push:
branches:
- 'test/github-action'
jobs:
# Basic test jobs
build:
uses: ./.github/workflows/test-excutor.yml
with:
test_command: |
git config --global --add safe.directory /__w/kaia/kaia
make all
test-linter:
uses: ./.github/workflows/test-excutor.yml
with:
test_command: |
git config --global --add safe.directory /__w/kaia/kaia
go run build/ci.go lint -v --new-from-rev=dev
test-networks:
uses: ./.github/workflows/test-excutor.yml
with:
test_command: |
git config --global --add safe.directory /__w/kaia/kaia
make test-networks
test-node:
uses: ./.github/workflows/test-excutor.yml
with:
test_command: make test-node
test-tests:
uses: ./.github/workflows/test-excutor.yml
with:
test_command: |
git clone --depth 1 https://github.com/kaiachain/kaia-core-tests.git tests/testdata
make test-tests
test-rpc:
uses: ./.github/workflows/test-excutor.yml
with:
test_command: |
make kcn
git clone https://github.com/kaiachain/kaia-rpc-tester.git
cd kaia-rpc-tester
cp ../build/bin/kcn script/cn/bin/
cd script
./set_CNonly.sh
cd ..
cp config_template.json config.json
curl https://bootstrap.pypa.io/get-pip.py | python
pip3 install -r requirements.txt
python3 main.py --protocol rpc
# Service-dependent test jobs
test-datasync:
uses: ./.github/workflows/test-other-excutor.yml
with:
test_command: make test-datasync
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
test-others:
uses: ./.github/workflows/test-other-excutor.yml
with:
test_command: make test-others
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
check-tagger:
runs-on: ubuntu-latest
steps:
- id: check-tag
run: |
if [[ ${{ github.event.ref }} =~ ^refs/tags/^v[0-9]+\.[0-9]+\.[0-9]+ ]]; then
echo "match=true" >> $GITHUB_OUTPUT
fi
- if: steps.check-tag.outputs.match == true
run: echo "Tag is good"