Created
March 24, 2020 10:37
-
-
Save stkbailey/1130d054585f2e16f7ce1a5034fe6043 to your computer and use it in GitHub Desktop.
GitHub Action for Looker Data Testing w/ Spectacles
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
# Place this file into `.github/workflows` in your Looker repository | |
# Create a "secret" in the repository settings with your CI user's | |
# Looker Client ID and Secret Token. Then update the environment variables below. | |
name: Looker Data Tests w/ Spectacles | |
on: | |
push: | |
branches: | |
- master | |
env: | |
LOOKER_BASE_URL: https://my_domain.looker.com | |
LOOKER_CLIENT_ID: ${{ secrets.LookerClientId }} | |
LOOKER_CLIENT_SECRET: ${{ secrets.LookerClientSecret }} | |
PROJECT: my_project | |
BRANCH: ${{ github.ref }} | |
TEST_MODE: batch | |
jobs: | |
spectacles: | |
name: Test All Looker Explores | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-python@v1 | |
with: | |
python-version: "3.7.x" | |
- run: pip3 install spectacles | |
- run: spectacles connect | |
- run: spectacles sql --project $PROJECT --branch $BRANCH --mode $TEST_MODE --remote-reset |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment