From c6499dea15500b5a375b20b1bb467c91cbc2785c Mon Sep 17 00:00:00 2001 From: potato167 <66621378+potato167@users.noreply.github.com> Date: Sun, 6 Aug 2023 16:53:09 +0900 Subject: [PATCH] Create verify.yml --- .github/workflows/verify.yml | 75 ++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 .github/workflows/verify.yml diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml new file mode 100644 index 0000000..e5b02aa --- /dev/null +++ b/.github/workflows/verify.yml @@ -0,0 +1,75 @@ +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/install@v0.1 + 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