summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.github/workflows/audit.yml20
-rw-r--r--.github/workflows/document.yml6
-rw-r--r--.github/workflows/test.yml2
-rw-r--r--.github/workflows/verify.yml19
4 files changed, 21 insertions, 26 deletions
diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml
index ba5dc190..e9f4b0c5 100644
--- a/.github/workflows/audit.yml
+++ b/.github/workflows/audit.yml
@@ -1,12 +1,26 @@
name: Audit
-on: [push]
+on:
+ push: {}
+ pull_request: {}
+ schedule:
+ - cron: '0 0 * * *'
jobs:
- dependencies:
+ vulnerabilities:
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v1
- name: Install cargo-audit
run: cargo install cargo-audit
- uses: actions/checkout@master
- - name: Audit dependencies
+ - name: Audit vulnerabilities
run: cargo audit
+
+ artifacts:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: hecrj/setup-rust-action@v1
+ - name: Install cargo-outdated
+ run: cargo install cargo-outdated
+ - uses: actions/checkout@master
+ - name: Find outdated dependencies
+ run: cargo outdated --workspace --exit-code 1
diff --git a/.github/workflows/document.yml b/.github/workflows/document.yml
index 09a7a4d5..230c5cb0 100644
--- a/.github/workflows/document.yml
+++ b/.github/workflows/document.yml
@@ -1,8 +1,5 @@
name: Document
-on:
- push:
- branches:
- - master
+on: [push, pull_request]
jobs:
all:
runs-on: ubuntu-20.04
@@ -31,6 +28,7 @@ jobs:
- name: Write CNAME file
run: echo 'docs.iced.rs' > ./target/doc/CNAME
- name: Publish documentation
+ if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.DOCS_DEPLOY_KEY }}
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index a9a9b3f9..ac8d27f9 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -25,6 +25,8 @@ jobs:
web:
runs-on: ubuntu-latest
+ env:
+ RUSTFLAGS: --cfg=web_sys_unstable_apis
steps:
- uses: hecrj/setup-rust-action@v1
with:
diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml
deleted file mode 100644
index 089dd5c9..00000000
--- a/.github/workflows/verify.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-name: Verify
-on:
- pull_request:
- branches:
- - master
-jobs:
- changelog:
- runs-on: ubuntu-20.04
- steps:
- - uses: actions/checkout@v2
- with:
- fetch-depth: 0
- - name: Check `CHANGELOG.md` has changes
- run: |
- ! git diff --exit-code origin/master HEAD -- CHANGELOG.md
- - name: Check `CHANGELOG.md` thanks the PR author
- if: ${{ github.event.pull_request.user.login != 'hecrj' }}
- run: |
- sed -n '/## \[Unreleased\]/,/^## /p' CHANGELOG.md | sed -n '/Many thanks to.../,//p' | grep '@${{ github.event.pull_request.user.login }}'