Skip to content

Commit 8529213

Browse files
Caching in actions, some tags in README.md
1 parent 935cbbd commit 8529213

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/tests.yml

+31
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,22 @@ jobs:
1010
steps:
1111
- name: Checkout
1212
uses: actions/checkout@v2
13+
1314
- name: Set up Go 1.18
1415
uses: actions/setup-go@v2
1516
with:
1617
go-version: 1.18
18+
19+
- name: "Cache go deps"
20+
uses: actions/cache@v3
21+
with:
22+
path: |
23+
~/.cache/go-build
24+
~/go/pkg/mod
25+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
26+
restore-keys: |
27+
${{ runner.os }}-go-
28+
1729
- name: Run tests
1830
run: make test
1931

@@ -22,6 +34,7 @@ jobs:
2234
steps:
2335
- name: Checkout
2436
uses: actions/checkout@v2
37+
2538
- name: golangci-lint
2639
uses: golangci/golangci-lint-action@v2
2740
with:
@@ -33,19 +46,35 @@ jobs:
3346
steps:
3447
- name: Checkout
3548
uses: actions/checkout@v2
49+
3650
- name: Set up Node 16
3751
uses: actions/setup-node@v2
3852
with:
3953
node-version: "16"
54+
55+
- name: Get yarn cache directory path
56+
id: yarn-cache-dir-path
57+
run: echo "::set-output name=dir::$(yarn cache dir)"
58+
59+
- name: "Cache deps"
60+
uses: actions/cache@v3
61+
with:
62+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
63+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
64+
restore-keys: |
65+
${{ runner.os }}-yarn-
66+
4067
- name: Install dependencies
4168
working-directory: front
4269
run: yarn install
70+
4371
- name: Run linters
4472
uses: wearerequired/lint-action@v2
4573
with:
4674
eslint: true
4775
eslint_dir: front/src
4876
eslint_args: "--ext .js,.vue,.ts"
77+
4978
- name: Check the frontend compiles
5079
working-directory: front
5180
run: yarn build
@@ -55,7 +84,9 @@ jobs:
5584
steps:
5685
- name: Checkout
5786
uses: actions/checkout@v2
87+
5888
- name: Setup buf
5989
uses: bufbuild/[email protected]
90+
6091
- name: Lint proto
6192
run: make lint-proto

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
[![tests](https://github.com/C4T-BuT-S4D/FastAD/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/C4T-BuT-S4D/FastAD/actions/workflows/tests.yml)
2+
[![Go Report Card](https://goreportcard.com/badge/github.com/c4t-but-s4d/fastad)](https://goreportcard.com/report/github.com/c4t-but-s4d/fastad)
3+
[![GitHub license](https://badgen.net/github/license/C4T-BuT-S4D/FastAD)](https://github.com/C4T-BuT-S4D/FastAD/blob/master/LICENSE)
24

35
# FastAD
46

0 commit comments

Comments
 (0)