Skip to content

Commit

Permalink
actions
Browse files Browse the repository at this point in the history
  • Loading branch information
IzaacAyelin committed Feb 25, 2024
1 parent 527dc2f commit 3676f3c
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,31 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm run lint
tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.13.0]
test-script: ["ci:test-unit", "ci:test-e2e-layouts","ci:test-e2e-styleParams", "ci:test-e2e-integration"]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Install, build and run test
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run ${{ matrix.test-script }}
env:
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }}
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
TEST_NAME: ${{ matrix.test-script }}

deploy:
runs-on: ubuntu-latest
needs: [lint, tests]
strategy:
matrix:
node-version: [16.13.0]
Expand Down Expand Up @@ -67,7 +89,7 @@ jobs:
update-playground:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
needs: [lint]
needs: [lint, tests]
strategy:
matrix:
node-version: [16.13.0]
Expand Down

0 comments on commit 3676f3c

Please sign in to comment.