-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (43 loc) · 1.05 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
name: Build and Test
on:
push:
branches:
- main
pull_request:
branches:
- main
repository_dispatch:
types: [ periodic ]
jobs:
build:
strategy:
matrix:
image: [ macos-12, ubuntu-22.04, windows-2022 ]
fail-fast: false
runs-on: ${{ matrix.image }}
steps:
- uses: actions/checkout@v4
- id: yarn-cache
name: Determine Yarn cache directory
run: |
echo "::set-output name=path::$(yarn cache dir)"
- name: Yarn cache
uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache.outputs.path }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: |
yarn install
- name: Build
run: |
yarn run build
- name: Run tests
run: |
yarn test
- name: Upload the distribution
if: matrix.image == 'ubuntu-22.04'
uses: actions/upload-artifact@v4
with:
name: msdn-delocalizer
path: build/dest