|
11 | 11 | id: yarn-cache-dir-path
|
12 | 12 | run: echo "::set-output name=dir::$(yarn cache dir)"
|
13 | 13 | - uses: actions/cache@v1
|
14 |
| - id: yarn-cache |
15 | 14 | with:
|
16 | 15 | path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
17 | 16 | key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
21 | 20 | - name: Run yarn fmt
|
22 | 21 | uses: ./ci/image
|
23 | 22 | with:
|
24 |
| - args: yarn && yarn fmt |
| 23 | + args: yarn && yarn vscode && yarn fmt |
| 24 | + env: |
| 25 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
25 | 26 |
|
26 | 27 | lint:
|
27 | 28 | runs-on: ubuntu-latest
|
|
32 | 33 | id: yarn-cache-dir-path
|
33 | 34 | run: echo "::set-output name=dir::$(yarn cache dir)"
|
34 | 35 | - uses: actions/cache@v1
|
35 |
| - id: yarn-cache |
36 | 36 | with:
|
37 | 37 | path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
38 | 38 | key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
42 | 42 | - name: Run yarn lint
|
43 | 43 | uses: ./ci/image
|
44 | 44 | with:
|
45 |
| - args: yarn && yarn lint |
| 45 | + args: yarn && yarn vscode && yarn lint |
| 46 | + env: |
| 47 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
46 | 48 |
|
47 |
| - release-amd64: |
| 49 | + test: |
| 50 | + runs-on: ubuntu-latest |
| 51 | + steps: |
| 52 | + - uses: actions/checkout@v1 |
| 53 | + |
| 54 | + - name: Get yarn cache directory path |
| 55 | + id: yarn-cache-dir-path |
| 56 | + run: echo "::set-output name=dir::$(yarn cache dir)" |
| 57 | + - uses: actions/cache@v1 |
| 58 | + with: |
| 59 | + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} |
| 60 | + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} |
| 61 | + restore-keys: | |
| 62 | + ${{ runner.os }}-yarn- |
| 63 | +
|
| 64 | + - name: Run yarn test |
| 65 | + uses: ./ci/image |
| 66 | + with: |
| 67 | + args: yarn && yarn vscode && yarn test |
| 68 | + env: |
| 69 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 70 | + |
| 71 | + release-linux-amd64: |
48 | 72 | runs-on: ubuntu-latest
|
49 | 73 | steps:
|
50 | 74 | - uses: actions/checkout@v1
|
|
53 | 77 | id: yarn-cache-dir-path
|
54 | 78 | run: echo "::set-output name=dir::$(yarn cache dir)"
|
55 | 79 | - uses: actions/cache@v1
|
56 |
| - id: yarn-cache |
57 | 80 | with:
|
58 | 81 | path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
59 | 82 | key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
64 | 87 | uses: ./ci/image
|
65 | 88 | with:
|
66 | 89 | args: yarn && yarn vscode && ./ci/release.sh
|
| 90 | + env: |
| 91 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 92 | + |
| 93 | + release-macos: |
| 94 | + runs-on: macos-latest |
| 95 | + steps: |
| 96 | + - uses: actions/checkout@v1 |
| 97 | + |
| 98 | + - name: Get yarn cache directory path |
| 99 | + id: yarn-cache-dir-path |
| 100 | + run: echo "::set-output name=dir::$(yarn cache dir)" |
| 101 | + - uses: actions/cache@v1 |
| 102 | + with: |
| 103 | + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} |
| 104 | + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} |
| 105 | + restore-keys: | |
| 106 | + ${{ runner.os }}-yarn- |
| 107 | +
|
| 108 | + - name: Run release.sh |
| 109 | + run: yarn && yarn vscode && ./ci/release.sh |
| 110 | + env: |
| 111 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments