Create verify.yml #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: verify | |
on: push | |
jobs: | |
verify: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
- name: Install dependencies | |
run: pip3 install -U online-judge-verify-helper | |
# required only if you want to verify Haskell code | |
- name: Install dependencies (Haskell) | |
uses: actions/setup-haskell@v1 | |
# required only if you want to verify Java code | |
- name: Install dependencies (Java) | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
# required only if you want to verify C# script files | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '3.1.101' | |
- name: Install dependencies (C#) | |
run: dotnet tool install -g dotnet-script | |
# required only if you want to verify Go code | |
- name: Install dependencies (Go) | |
uses: actions/setup-go@v2 | |
# required only if you want to verify Ruby code | |
- name: Install dependencies (Ruby) | |
uses: actions/setup-ruby@v1 | |
# required only if you want to verify Nim code | |
- name: Install dependencies (Nim) | |
run: sudo apt install nim | |
- name: Set up Rust (1.42.0) | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: 1.42.0-x86_64-unknown-linux-gnu | |
default: true | |
profile: minimal | |
# required by cargo-udeps | |
- name: Set up Rust (nightly) | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-x86_64-unknown-linux-gnu | |
default: true | |
profile: minimal | |
# required only if you set `languages.rust.list_dependencies_backend.kind` to `"cargo-udeps"` | |
- name: Install cargo-udeps for Rust | |
uses: actions-rs/[email protected] | |
with: | |
crate: cargo-udeps | |
use-tool-cache: true | |
- name: Run tests | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
YUKICODER_TOKEN: ${{ secrets.YUKICODER_TOKEN }} | |
GH_PAT: ${{ secrets.GH_PAT }} | |
run: oj-verify all |