Skip to content

Commit

Permalink
test: add GH test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gioboa committed Jan 30, 2024
1 parent a083f59 commit f786701
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Storefront UI Cypress tests

description: Storefront UI Cypress tests

inputs:
github_token:
description: GitHub token
required: true

runs:
using: composite

steps:
- name: Build Storefront UI
shell: bash
run: npx nx build qwik-storefront-ui

- name: Run Storefront UI Cypress tests
shell: bash
run: npx nx run qwik-storefront-ui:component-test-ci
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test

on:
- push
- pull_request

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node_version: [21]

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
if: github.event_name == 'pull_request'
with:
access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup
uses: ./.github/actions/setup

- name: Test
uses: ./.github/actions/test
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f786701

Please sign in to comment.