Configure validations using CI #40
Workflow file for this run
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: Automation Checks | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-and-test: | |
name: Automation for agencia-clickone | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v2 | |
with: | |
path: automation | |
- name: Run automation tests | |
run: | | |
cd automation | |
ls -la | |
./run_tests.sh -S ${{ env.INPUT_SRC }} | |
env: | |
INPUT_SRC: automation | |
- name: Upload test results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: github-pages | |
path: automation/results/ | |
deploy: | |
needs: build-and-test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Download test results | |
uses: actions/download-artifact@v3 | |
with: | |
name: test-results | |
path: results/ | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |