Skip to content

Commit

Permalink
Add GitHub Action for checking the build
Browse files Browse the repository at this point in the history
  • Loading branch information
arildm committed Nov 13, 2023
1 parent ea78beb commit 18bbd6b
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build

on: [push]

jobs:
build:
# This job doesn't run the tests because they are a bit unstable.
runs-on: ubuntu-latest

defaults:
run:
working-directory: korp-frontend

strategy:
matrix:
# Having "" here enables the `node-version-file` option
node-version: ["", 14, 16, 18, 20]

steps:
- name: Checkout main repo
uses: actions/checkout@v4
with:
path: korp-frontend

- name: Checkout Språkbanken config repo
uses: actions/checkout@v4
with:
repository: spraakbanken/korp-frontend-sb
token: ${{ secrets.ACCESS_TOKEN }}
ref: ${{ github.ref == 'master' && 'master' || 'dev' }} # Choose dev or master matching the main repo.
path: korp-frontend-sb

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version-file: korp-frontend/.nvmrc

- name: Install dependencies
run: yarn install

- name: Link config
run: |
echo '{"configDir": "../korp-frontend-sb/app"}' > run_config.json
- name: Build
run: yarn build
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.9
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [9.5.0-dev]

### Added

- A GitHub action to check the build

### Changed

- Logo changes: New Korp, new Språkbanken Text, replaced Swe-CLARIN with University of Gothenburg, new Karp icon
Expand Down

0 comments on commit 18bbd6b

Please sign in to comment.