From a177818da5efea7514f3e030703267acd6a081f6 Mon Sep 17 00:00:00 2001 From: Edward Bebbington Date: Sat, 24 Oct 2020 23:43:05 +0100 Subject: [PATCH 1/2] chore: Add workflow files --- .github/workflows/bumper.yml | 43 ++++++++++++++++++++++++++++ .github/workflows/master.yml | 53 +++++++++++++++++++++++++++++++++++ .github/workflows/release.yml | 17 +++++++++++ 3 files changed, 113 insertions(+) create mode 100644 .github/workflows/bumper.yml create mode 100644 .github/workflows/master.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/bumper.yml b/.github/workflows/bumper.yml new file mode 100644 index 0000000..1348938 --- /dev/null +++ b/.github/workflows/bumper.yml @@ -0,0 +1,43 @@ +name: bumper +on: + schedule: + - cron: '0 0 * * *' + +jobs: + + update-dep: + + strategy: + matrix: + deno: ["1.4.6"] + + runs-on: ubuntu-latest + + steps: + - + - uses: actions/checkout@v2 + + - name: Install Deno + uses: denolib/setup-deno@v2 + with: + deno-version: ${{ matrix.deno }} + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + + - name: Update Deno Dependencies + run: echo To Be Decided + + - name: Update Rust Dependencies + run: cargo update + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v2 + with: + token: ${{ secrets.CI_TOKEN }} + commit-message: Update dependencies + title: Update dependencies + body: This was auto-generated by GitHub Actions. + branch: update-dependencies diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml new file mode 100644 index 0000000..8e25ad4 --- /dev/null +++ b/.github/workflows/master.yml @@ -0,0 +1,53 @@ +name: master + +on: + pull_request: + branches: + - master + push: + branches: + - master + +jobs: + + tests: + + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + deno: ["1.4.6"] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + + - name: Install Deno v${{ matrix.deno }} + uses: denolib/setup-deno@v2 + with: + deno-version: ${{ matrix.deno }} + + - name: Mango Unit Tests + run: echo TODO # deno test -A ... + + - name: Mango Integration Tests + run: echo TODO # deno test -A ... + + - name: BSON Unit Tests + run: echo TODO # ... + + linter: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install Deno v${{ matrix.deno }} + uses: denolib/setup-deno@master + + - name: Formatter + run: deno fmt --check + + - name: Linter + run: deno lint diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7f60cb3 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,17 @@ +name: release +on: + release: + types: [published] + +jobs: + + publish-egg: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: denolib/setup-deno@master + - run: deno install -A -f --unstable -n eggs https://x.nest.land/eggs@0.3.1/mod.ts + - run: | + export PATH="/home/runner/.deno/bin:$PATH" + eggs link ${{ secrets.NEST_LAND_API_KEY }} + eggs publish From 586e526f3aea079d43094228780a853cc4cc1015 Mon Sep 17 00:00:00 2001 From: Edward Bebbington Date: Sun, 25 Oct 2020 00:03:52 +0100 Subject: [PATCH 2/2] Rename master.yml to ci.yml --- .github/workflows/{master.yml => ci.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{master.yml => ci.yml} (98%) diff --git a/.github/workflows/master.yml b/.github/workflows/ci.yml similarity index 98% rename from .github/workflows/master.yml rename to .github/workflows/ci.yml index 8e25ad4..e52ddd5 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: master +name: ci on: pull_request: