Skip to content

Commit 2009f20

Browse files
chore: Configure GitHub Actions (#5730)
1 parent 1d80f7d commit 2009f20

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ development, master ]
6+
pull_request:
7+
branches: [ development, master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Use Node.js 14.x
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: 14.x
20+
- name: Get yarn cache path
21+
id: yarn-cache-path
22+
run: echo "::set-output name=dir::$(yarn cache dir)"
23+
- uses: actions/cache@v2
24+
id: yarn-cache
25+
with:
26+
path: ${{ steps.yarn-cache-path.outputs.dir }}
27+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
28+
restore-keys: |
29+
${{ runner.os }}-yarn
30+
- run: yarn
31+
- run: touch .env
32+
- run: yarn l10n:generate
33+
- run: yarn lint
34+
- run: COVERAGE=true yarn test
35+
- run: ROOT_URL=open-event-frontend yarn build -prod
36+
- name: Code Coverage
37+
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)