From 5b4813683430e2da42e1e1346372eea06dbf2dbf Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Mon, 28 Aug 2023 11:27:05 -0700 Subject: [PATCH] Scheduled testing --- .github/workflows/main.yml | 145 +++++++++++-------------------------- test.sh | 16 ++++ 2 files changed, 60 insertions(+), 101 deletions(-) create mode 100755 test.sh diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3896850..1a867a0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,184 +1,127 @@ name: CI -on: [push, pull_request] + +on: + schedule: + - cron: '2,22,42 * * * *' jobs: test1: name: Test1 runs-on: ubuntu-latest steps: - - run: | - cargo new foo - cd foo - echo 'deno = "*"' >> Cargo.toml - cargo generate-lockfile + - uses: actions/checkout@v3 + - run: ./test.sh test2: name: Test2 runs-on: ubuntu-latest steps: - - run: | - cargo new foo - cd foo - echo 'deno = "*"' >> Cargo.toml - cargo generate-lockfile + - uses: actions/checkout@v3 + - run: ./test.sh test3: name: Test3 runs-on: ubuntu-latest steps: - - run: | - cargo new foo - cd foo - echo 'deno = "*"' >> Cargo.toml - cargo generate-lockfile + - uses: actions/checkout@v3 + - run: ./test.sh test4: name: Test4 runs-on: ubuntu-latest steps: - - run: | - cargo new foo - cd foo - echo 'deno = "*"' >> Cargo.toml - cargo generate-lockfile + - uses: actions/checkout@v3 + - run: ./test.sh test5: name: Test5 runs-on: ubuntu-latest steps: - - run: | - cargo new foo - cd foo - echo 'deno = "*"' >> Cargo.toml - cargo generate-lockfile + - uses: actions/checkout@v3 + - run: ./test.sh test6: name: Test6 runs-on: ubuntu-latest steps: - - run: | - cargo new foo - cd foo - echo 'deno = "*"' >> Cargo.toml - cargo generate-lockfile + - uses: actions/checkout@v3 + - run: ./test.sh test7: name: Test7 runs-on: ubuntu-latest steps: - - run: | - cargo new foo - cd foo - echo 'deno = "*"' >> Cargo.toml - cargo generate-lockfile + - uses: actions/checkout@v3 + - run: ./test.sh test8: name: Test8 runs-on: ubuntu-latest steps: - - run: | - cargo new foo - cd foo - echo 'deno = "*"' >> Cargo.toml - cargo generate-lockfile + - uses: actions/checkout@v3 + - run: ./test.sh test9: name: Test9 runs-on: ubuntu-latest steps: - - run: | - cargo new foo - cd foo - echo 'deno = "*"' >> Cargo.toml - cargo generate-lockfile + - uses: actions/checkout@v3 + - run: ./test.sh test10: name: Test10 runs-on: ubuntu-latest steps: - - run: | - cargo new foo - cd foo - echo 'deno = "*"' >> Cargo.toml - cargo generate-lockfile + - uses: actions/checkout@v3 + - run: ./test.sh test11: name: Test11 runs-on: ubuntu-latest steps: - - run: | - cargo new foo - cd foo - echo 'deno = "*"' >> Cargo.toml - cargo generate-lockfile + - uses: actions/checkout@v3 + - run: ./test.sh test12: name: Test12 runs-on: ubuntu-latest steps: - - run: | - cargo new foo - cd foo - echo 'deno = "*"' >> Cargo.toml - cargo generate-lockfile + - uses: actions/checkout@v3 + - run: ./test.sh test13: name: Test13 runs-on: ubuntu-latest steps: - - run: | - cargo new foo - cd foo - echo 'deno = "*"' >> Cargo.toml - cargo generate-lockfile + - uses: actions/checkout@v3 + - run: ./test.sh test14: name: Test14 runs-on: ubuntu-latest steps: - - run: | - cargo new foo - cd foo - echo 'deno = "*"' >> Cargo.toml - cargo generate-lockfile + - uses: actions/checkout@v3 + - run: ./test.sh test15: name: Test15 runs-on: ubuntu-latest steps: - - run: | - cargo new foo - cd foo - echo 'deno = "*"' >> Cargo.toml - cargo generate-lockfile + - uses: actions/checkout@v3 + - run: ./test.sh test16: name: Test16 runs-on: ubuntu-latest steps: - - run: | - cargo new foo - cd foo - echo 'deno = "*"' >> Cargo.toml - cargo generate-lockfile + - uses: actions/checkout@v3 + - run: ./test.sh test17: name: Test17 runs-on: ubuntu-latest steps: - - run: | - cargo new foo - cd foo - echo 'deno = "*"' >> Cargo.toml - cargo generate-lockfile + - uses: actions/checkout@v3 + - run: ./test.sh test18: name: Test18 runs-on: ubuntu-latest steps: - - run: | - cargo new foo - cd foo - echo 'deno = "*"' >> Cargo.toml - cargo generate-lockfile + - uses: actions/checkout@v3 + - run: ./test.sh test19: name: Test19 runs-on: ubuntu-latest steps: - - run: | - cargo new foo - cd foo - echo 'deno = "*"' >> Cargo.toml - cargo generate-lockfile + - uses: actions/checkout@v3 + - run: ./test.sh test20: name: Test20 runs-on: ubuntu-latest steps: - - run: | - cargo new foo - cd foo - echo 'deno = "*"' >> Cargo.toml - cargo generate-lockfile + - uses: actions/checkout@v3 + - run: ./test.sh diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..7ff4567 --- /dev/null +++ b/test.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +set -ex + +export CARGO_NET_RETRY=0 + +for package in cargo cargo-make cargo-all-features cargo-deb backtrace deno leptos_icons poem +do + echo $package + cargo new a + cd a + echo "$package = \"*\"" >> Cargo.toml + CARGO_HOME=chome cargo generate-lockfile + cd .. + rm -rf a +done