Adjust new lines at the end of file #1
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: Compatibility - Extension Tests | |
on: | |
push: | |
branches: | |
- extension/* | |
env: | |
RESULT_REPO_ACCESS_TOKEN: ${{ secrets.TEST_RESULTS_REPO_TOKEN }} | |
jobs: | |
extension: | |
runs-on: ubuntu-latest | |
container: | |
image: buildpack-deps:bullseye | |
options: --user root | |
steps: | |
- uses: actions/[email protected] | |
- name: Fix ownership issues | |
run: git config --global --add safe.directory ${GITHUB_WORKSPACE} | |
- name: Install Dependencies | |
run: |- | |
apt-get update && apt-get install -y cmake zip jq | |
apt-get install -y ca-certificates curl apt-transport-https lsb-release gnupg | |
curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null | |
AZ_REPO=$(lsb_release -cs) | |
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | tee /etc/apt/sources.list.d/azure-cli.list | |
apt-get update | |
apt-get install -y azure-cli | |
- name: Login to Azure | |
run: |- | |
az login --service-principal \ | |
-u ${{ fromJson(secrets.AZURE_CREDENTIALS)['clientId']}} \ | |
-p ${{ fromJson(secrets.AZURE_CREDENTIALS)['clientSecret']}} \ | |
--tenant ${{ fromJson(secrets.AZURE_CREDENTIALS)['tenantId']}} | |
- name: Run extension tests | |
run: |- | |
mkdir ~/.ssh | |
cd ./azure | |
export EXTENSION_TEST=1 | |
./citus-bot.sh citusbot_extension_test_resource_group | |
shell: bash | |