-
Notifications
You must be signed in to change notification settings - Fork 83
36 lines (34 loc) · 1.28 KB
/
test-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Test CI
on:
pull_request:
branches: [develop]
jobs:
test-ci:
name: Build, test, and deploy preview of components
runs-on: ubuntu-latest
if: github.event.repository.full_name == 'SpareBank1/designsystem'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install
- run: npm run build
- run: npm run lint
- run: npm test -- --ci
- name: Build component overview page
if: ${{ !github.event.pull_request.head.repo.fork }}
run: npm run build-storybook
env:
GH_PUBLIC_URL: /
- name: Build and deploy preview
if: ${{ !github.event.pull_request.head.repo.fork }}
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BLACK_BEACH_0D62D0D03 }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: 'upload'
app_location: './storybook-static'
api_location: ''
output_location: ''
skip_app_build: true