Skip to content

Commit

Permalink
Add SB config repo to build action
Browse files Browse the repository at this point in the history
  • Loading branch information
arildm committed Nov 13, 2023
1 parent 38d2621 commit c1bfa75
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
32 changes: 28 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,46 @@
name: Node.js CI
name: Build

on: [push]

jobs:
build:
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:
- uses: actions/checkout@v4
- 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 }} # 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: .nvmrc
- run: yarn install
- run: yarn build

- name: Install dependencies
run: yarn install

- name: Link config
run: |
echo '{"configDir": "../korp-frontend-sb/app"}' > run_config.json
- name: Build
run: yarn build
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 and catch bugs earlier

### 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 c1bfa75

Please sign in to comment.