test js cli #36
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
tags: ['*'] | |
env: | |
LIBICU: libicu70 | |
jobs: | |
build-c: | |
strategy: | |
matrix: | |
BUILD_TYPE: [Debug, Release] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install ICU | |
run: | | |
# sudo apt-get update -y | |
sudo apt-get install -y libicu-dev ${{env.LIBICU}} | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{matrix.BUILD_TYPE}} | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ctest -C ${{matrix.BUILD_TYPE}} | |
build-js: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test | |
run: npm test | |
- name: Install | |
run: | | |
npm install --global | |
- name: Test CLI | |
run: | | |
sh -c '[ "$(npm exec -- uklatn -t DSTU_9112_B мрії мої)" = "mriji moji" ]' | |
build-py: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test | |
working-directory: ${{github.workspace}}/python | |
run: make test | |
build-swift: | |
strategy: | |
matrix: | |
BUILD_TYPE: [debug, release] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install ICU | |
run: | | |
sudo apt-get install -y libicu-dev ${{env.LIBICU}} | |
- name: Build | |
run: swift build -c ${{matrix.BUILD_TYPE}} | |
- name: Test | |
run: swift test -c ${{matrix.BUILD_TYPE}} | |