-
Notifications
You must be signed in to change notification settings - Fork 149
45 lines (40 loc) · 1.6 KB
/
test.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
37
38
39
40
41
42
43
44
45
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Testing
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm run lint
- run: npm test
# - name: Build fixture
# run: npm run func:build
# - name: Set envs
# run: |
# echo "FUNC_PATH=dist/${GITHUB_WORKFLOW}/${GITHUB_JOB}/${GITHUB_RUN_NUMBER}" >> ${GITHUB_ENV}
# - name: Deploy to gh-pages
# uses: peaceiris/[email protected]
# with:
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
# destination_dir: ./${{ env.FUNC_PATH }}
# keep_files: true
# publish_dir: ./tests/functional/dist
# - name: Func test
# run: npm run func -- --baseUrl http://yahoo.github.io/
# env:
# SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
# SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}