From 2f70ae2285f6ba8b0ff5219632c1034141f8577e Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Wed, 22 May 2024 00:15:39 +0300 Subject: [PATCH] test --- .github/workflows/make.yml | 5 ++++- .github/workflows/test.yml | 36 ++++++++++++++++++++++++++++++++++++ Dockerfile | 4 +++- 3 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/make.yml b/.github/workflows/make.yml index d88ea33..fcd0b7a 100644 --- a/.github/workflows/make.yml +++ b/.github/workflows/make.yml @@ -29,6 +29,9 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 16 - run: | sudo wget --no-verbose -O /usr/local/Saxon.jar \ https://repo.maven.apache.org/maven2/net/sf/saxon/Saxon-HE/9.8.0-5/Saxon-HE-9.8.0-5.jar @@ -36,5 +39,5 @@ jobs: with: ruby-version: 3.2 - run: gem install judges:0.0.31 - - run: gem install sass:1.76.0 + - run: npm install -g sass - run: make diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..7cde4d0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,36 @@ +# MIT License +# +# Copyright (c) 2024 Zerocracy +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. +--- +name: test +'on': + push: + pull_request: +jobs: + test: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: ./ + with: + verbose: true + output: pages + factbase: test.fb diff --git a/Dockerfile b/Dockerfile index 14b9943..04b1768 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,7 +32,9 @@ RUN apt-get update -y --fix-missing \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* -RUN gem install sass:1.76.0 judges:0.0.31 \ +RUN npm install -g sass@1.77.2 + +RUN gem install judges:0.0.31 \ && wget --no-verbose -O /usr/local/Saxon.jar \ https://repo.maven.apache.org/maven2/net/sf/saxon/Saxon-HE/9.8.0-5/Saxon-HE-9.8.0-5.jar