From 559710d66fc00e350c1f52b0e9da57dc8bbfc058 Mon Sep 17 00:00:00 2001 From: Camille TJHOA Date: Wed, 3 Mar 2021 17:09:13 +0000 Subject: [PATCH] Move to github actions --- .github/workflows/main.yml | 47 ++++++++++++++++++++++++++++++++++++++ .markdownlint.json | 6 +++++ .mdlrc | 1 - .travis.yml | 17 -------------- README.md | 2 +- fr_FR.md | 1 - 6 files changed, 54 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/main.yml create mode 100644 .markdownlint.json delete mode 100644 .mdlrc delete mode 100644 .travis.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..6c8cae5 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,47 @@ +on: [push] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + + - name: Lint markdown + run: npx markdownlint-cli2 "*.md" "#MAINTAINERS.md" + + - name: Check links + run: npx markdown-link-check -c .markdown-link-check-config.json README.md + + - name: Check links da_DK + run: npx markdown-link-check da_DK.md + + - name: Check links de_DE + run: npx markdown-link-check de_DE.md + + - name: Check links es_ES + run: npx markdown-link-check es_ES.md + + - name: Check links fr_FR + run: npx markdown-link-check fr_FR.md + + - name: Check links it_IT + run: npx markdown-link-check it_IT.md + + - name: Check links ja_JP + run: npx markdown-link-check ja_JP.md + + - name: Check links ko_KR + run: npx markdown-link-check ko_KR.md + + - name: Check links pt_BR + run: npx markdown-link-check pt_BR.md + + - name: Check links ru_RU + run: npx markdown-link-check ru_RU.md + + - name: Check links tr_TR + run: npx markdown-link-check tr_TR.md + + - name: Check links zh_CN + run: npx markdown-link-check zh_CN.md diff --git a/.markdownlint.json b/.markdownlint.json new file mode 100644 index 0000000..2cd4513 --- /dev/null +++ b/.markdownlint.json @@ -0,0 +1,6 @@ +{ + "default": true, + "line-length": false, + "no-space-in-links": false, + "no-inline-html": false +} diff --git a/.mdlrc b/.mdlrc deleted file mode 100644 index 8e5ec07..0000000 --- a/.mdlrc +++ /dev/null @@ -1 +0,0 @@ -rules "~MD013", "~MD039", "~MD026" diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 57d2dfa..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -before_install: -- gem install mdl -- npm install -g markdown-link-check -script: -- mdl -c ./.mdlrc *.md -- markdown-link-check -c .markdown-link-check-config.json README.md -- markdown-link-check da_DK.md -- markdown-link-check de_DE.md -- markdown-link-check es_ES.md -- markdown-link-check fr_FR.md -- markdown-link-check it_IT.md -- markdown-link-check ja_JP.md -- markdown-link-check ko_KR.md -- markdown-link-check pt_BR.md -- markdown-link-check ru_RU.md -- markdown-link-check tr_TR.md -- markdown-link-check zh_CN.md diff --git a/README.md b/README.md index 36b688a..9e4c590 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# rust-learning [![Build Status](https://travis-ci.org/ctjhoa/rust-learning.svg?branch=master)](https://travis-ci.org/ctjhoa/rust-learning) +# rust-learning ![Build Status](https://github.com/ctjhoa/rust-learning/actions/workflows/main.yml/badge.svg?branch=master) A bunch of links to blog posts, articles, videos, etc for learning Rust. Feel free to submit a pull request if you have some links/resources to add. Also, I try to verify that the articles below have some real content (i.e. aren't 2 paragraph blog posts with little information) to ensure I'm not listing "fluff" pieces. If you have an idea for a better way to organize these links, please let me know. diff --git a/fr_FR.md b/fr_FR.md index 7f1bcfa..23c6780 100644 --- a/fr_FR.md +++ b/fr_FR.md @@ -7,4 +7,3 @@ * [Retrouvez un grand nombre de Questions/Réponses dans cette FAQ dédiée à rust !](https://github.com/Songbird0/Rust_FAQ) - Anthony Defranceschi/Songbird0 * [Traduction française du livre Rust by example](https://github.com/Songbird0/FR_RBE) - Anthony Defranceschi/Songbird0 * [Meetup Rust Paris](https://www.meetup.com/fr-FR/Rust-Paris/) -