mirror of
https://github.com/veggiemonk/awesome-docker.git
synced 2025-11-24 01:14:28 +01:00
Use github actions
This commit is contained in:
33
.github/workflows/build.yaml.txt
vendored
Normal file
33
.github/workflows/build.yaml.txt
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Build site
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '.github/workflows/build.yml'
|
||||
- 'README.md'
|
||||
|
||||
jobs:
|
||||
build_site:
|
||||
runs-on: ubuntu-latest
|
||||
name: Build site
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- uses: actions/setup-node@master
|
||||
with:
|
||||
node-version: '12.x'
|
||||
- name: Determine npm cache directory
|
||||
id: npm-cache
|
||||
run: |
|
||||
echo "::set-output name=dir::$(npm config get cache)"
|
||||
- name: Restore npm cache
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ${{ steps.npm-cache.outputs.dir }}
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-
|
||||
- run: npm run build
|
||||
29
.github/workflows/check_links.yaml
vendored
Normal file
29
.github/workflows/check_links.yaml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
name: Check links
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- '.github/workflows/check_links.yml'
|
||||
- 'README.md'
|
||||
|
||||
jobs:
|
||||
check_links:
|
||||
runs-on: ubuntu-latest
|
||||
name: Check links
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- uses: actions/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: '2.6'
|
||||
# - uses: actions/cache@v1
|
||||
# with:
|
||||
# path: vendor/bundle
|
||||
# key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
||||
# restore-keys: |
|
||||
# ${{ runner.os }}-gems-
|
||||
- name: Awesome bot checking
|
||||
run: |
|
||||
gem install awesome_bot
|
||||
awesome_bot README.md --white-list edit/master,sindresorhus/awesome,www.udacity.com,screwdriver.cd,veggiemonk/awesome-docker,vimeo.com,cycle.io,www.youtube.com
|
||||
Reference in New Issue
Block a user