Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

[WIP] chore: Add workflow files #8

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/bumper.yml
Original file line number Diff line number Diff line change
@@ -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
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: ci

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
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]/mod.ts
- run: |
export PATH="/home/runner/.deno/bin:$PATH"
eggs link ${{ secrets.NEST_LAND_API_KEY }}
eggs publish