From e890d8f9f39d9c56451061344375f18feb9b6a69 Mon Sep 17 00:00:00 2001 From: Ivan Gagarinov Date: Tue, 2 Jul 2024 18:57:45 +0500 Subject: [PATCH 1/4] add workflow --- .github/workflows/check.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 00000000..10038f9d --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,22 @@ +name: Docker + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + main: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Check + uses: addnab/docker-run-action@v3 + with: + image: hexlet/languagetool-cli:latest + options: -v ./modules:/content + run: node ./bin/check.js From a652070cec86c600fed045b38619bde9e47bed24 Mon Sep 17 00:00:00 2001 From: Ivan Gagarinov Date: Tue, 2 Jul 2024 18:59:00 +0500 Subject: [PATCH 2/4] fix action name --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 10038f9d..329ad877 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,4 +1,4 @@ -name: Docker +name: Languagetool on: push: From 816aca48147ff2b78d5200e142f527334a1c4d48 Mon Sep 17 00:00:00 2001 From: Ivan Gagarinov Date: Tue, 2 Jul 2024 19:01:54 +0500 Subject: [PATCH 3/4] fix volume path --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 329ad877..c1414efd 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -18,5 +18,5 @@ jobs: uses: addnab/docker-run-action@v3 with: image: hexlet/languagetool-cli:latest - options: -v ./modules:/content + options: -v ${{ github.workspace }}/modules:/content run: node ./bin/check.js From 1e577bb09740b937299d10e6044af9d58ba098dd Mon Sep 17 00:00:00 2001 From: Ivan Gagarinov Date: Wed, 3 Jul 2024 18:52:40 +0500 Subject: [PATCH 4/4] update command --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index c1414efd..502e21ea 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -19,4 +19,4 @@ jobs: with: image: hexlet/languagetool-cli:latest options: -v ${{ github.workspace }}/modules:/content - run: node ./bin/check.js + run: node ./bin/run.js check /content/**/*.md