Skip to content

Commit

Permalink
add only one test for ci
Browse files Browse the repository at this point in the history
Signed-off-by: Erick Wendel <[email protected]>
  • Loading branch information
ErickWendel committed Jul 29, 2024
1 parent 66b9c9a commit 2d96964
Show file tree
Hide file tree
Showing 2 changed files with 476 additions and 472 deletions.
78 changes: 41 additions & 37 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,42 +16,46 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Set up Docker Compose
run: |
sudo rm /usr/local/bin/docker-compose
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /tmp/docker-compose
chmod +x /tmp/docker-compose
sudo mv /tmp/docker-compose /usr/local/bin/docker-compose
- name: Start nodered
run: npm run docker:start-nodered

- name: Restore dependencies
run: npm ci

- name: Install Chromium browser only
run: npx playwright install chromium --with-deps

- name: install nodered custom module
run: npm run docker:install-module

- name: Run Playwright tests
run: npm test
- shell: bash
env:
GOOGLE_SHEETS_AUTH_FILE: ${{ secrets.GOOGLE_SHEETS_AUTH_FILE }}

- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30

- name: Clean up
run: npm run docker:clean
run: |
echo "$GOOGLE_SHEETS_AUTH_FILE"
# - name: Use Node.js
# uses: actions/setup-node@v4
# with:
# node-version: 20

# - name: Set up Docker Compose
# run: |
# sudo rm /usr/local/bin/docker-compose
# curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /tmp/docker-compose
# chmod +x /tmp/docker-compose
# sudo mv /tmp/docker-compose /usr/local/bin/docker-compose

# - name: Start nodered
# run: npm run docker:start-nodered

# - name: Restore dependencies
# run: npm ci

# - name: Install Chromium browser only
# run: npx playwright install chromium --with-deps

# - name: install nodered custom module
# run: npm run docker:install-module

# - name: Run Playwright tests
# run: npm test
# env:
# GOOGLE_SHEETS_AUTH_FILE: ${{ secrets.GOOGLE_SHEETS_AUTH_FILE }}

# - uses: actions/upload-artifact@v4
# if: always()
# with:
# name: playwright-report
# path: playwright-report/
# retention-days: 30

# - name: Clean up
# run: npm run docker:clean
Loading

0 comments on commit 2d96964

Please sign in to comment.