Chore(deps): Bump actions/checkout from 3 to 4 #207
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: Playwright E2E Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
# fow now, skip it | |
# if: false | |
steps: | |
- uses: actions/checkout@v4 | |
# install python stuff | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
cache: 'pip' | |
- name: Install Python dependencies | |
run: | | |
make dev-install-dependencies-pack | |
make dev-install-dependencies-pack-sudo | |
make dev-install-dependencies-for-development | |
- name: Export current snapshot of app | |
run: echo "SDLAPP_VERSION_CURRENT_SNAPSHOT=$(jq -r '.meta.version' globalConfig.json)" >> $GITHUB_ENV | |
# build splunk application | |
- name: Build Splunk Application | |
run: | | |
scripts/pack.sh \ | |
--version "${{ env.SDLAPP_VERSION_CURRENT_SNAPSHOT }}-E2ETesting" \ | |
--input TA_dataset \ | |
--output output \ | |
--release release | |
# run Splunk | |
- name: Run Splunk | |
run: | | |
make docker-splunk-run-ci | |
# install node stuff | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Install NPM dependencies | |
run: | | |
make e2e-install | |
- name: Create .env file | |
run: | | |
echo "SPLUNK_USER=${{ secrets.SPLUNK_USER }}" >> .env | |
echo "SPLUNK_PASSWORD=${{ secrets.SPLUNK_PASSWORD }}" >> .env | |
echo "DATASET_URL=${{ secrets.DATASET_URL }}" >> .env | |
echo "DATASET_LOG_ACCESS_READ=${{ secrets.DATASET_LOG_ACCESS_READ }}" >> .env | |
echo "DATASET_LOG_ACCESS_WRITE=${{ secrets.DATASET_LOG_ACCESS_WRITE }}" >> .env | |
- name: Wait for Splunk | |
run: | | |
make dev-wait-for-splunk | |
- name: Run Playwright tests | |
run: | | |
make e2e-test | |
- name: Get Splunk logs | |
if: always() | |
run: | | |
make docker-splunk-tail-logs-count COUNT=1000 > splunk-logs.log | |
- name: Store playwright-report | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 | |
- name: Store playwright-screenshots | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-screenshots | |
path: playwright-screenshots/ | |
retention-days: 30 | |
- name: Store splunk-logs | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: splunk-logs.log | |
path: splunk-logs.log | |
retention-days: 30 |