Run sktest_3of4 Nightly #1244
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: Run sktest_3of4 Nightly | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
inputs: | |
skaled_release: | |
description: 'Skaled Release' | |
default: 'develop-latest' | |
required: true | |
jobs: | |
main_job: | |
runs-on: ubuntu-latest | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
SKALED_RELEASE: ${{ github.event.inputs.skaled_release || 'develop-latest' }} | |
#SKALED_RELEASE: develop-latest | |
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
TF_VAR_access_key: ${{ secrets.AWS_ACCESS_KEY }} | |
TF_VAR_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
steps: | |
- name: Install packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install python3-pip python3-venv jq btrfs-progs | |
sudo chown -R runner:runner ~/.config # HACK | |
- name: Add secrets | |
run: | | |
touch ~/.netrc | |
chmod 600 ~/.netrc | |
echo "machine github.com" > ~/.netrc | |
echo "login ${{ secrets.DIMALIT_ACCESS_TOKEN }}" >> ~/.netrc | |
echo "password ${{ secrets.DIMALIT_ACCESS_TOKEN }}" >> ~/.netrc | |
echo "${{ secrets.elvis_oregon_pem }}" > ~/elvis-oregon.pem | |
- uses: docker-practice/actions-setup-docker@master | |
- uses: actions/checkout@v2 | |
with: | |
ssh-key: '${{secrets.RUNNER_SSH_KEY}}' | |
submodules: 'recursive' | |
- name: Update Environment | |
run: | | |
./update_environment.sh skaled+internals | |
- name: skaled+internals+sktest_3of4 | |
timeout-minutes: 15 | |
run: | | |
mkdir data_dir || true | |
rm -rf data_dir/* || true | |
SKALED_PROVIDER=skaled_providers/binary_from_container DATA_DIR=data_dir ./run_tests.sh skaled+internals+sktest_3of4 | |
- run: | | |
sudo chown -R runner:runner . | |
sleep 60 | |
echo data_dir | |
cp -r ./integration_tests/skaled/internals/third_party/skale-node-tests/data_dir . | |
if: ${{ always() }} | |
- uses: actions/upload-artifact@v2 | |
if: ${{ always() }} | |
continue-on-error: true | |
with: | |
name: data_dir | |
path: | | |
./data_dir |