Skip to content

Commit 437553c

Browse files
committed
using github CI
1 parent 06567ad commit 437553c

File tree

6 files changed

+2107
-1885
lines changed

6 files changed

+2107
-1885
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

.github/workflows/nightly.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Nightly
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
jobs:
8+
test:
9+
runs-on: ${{ matrix.os }}
10+
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
node-version: [16.x]
15+
os: [ubuntu-latest]
16+
17+
steps:
18+
- name: Setup Repo
19+
uses: actions/checkout@v3
20+
21+
- name: Uses node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
26+
- name: Install all workspaces
27+
run: yarn install --immutable
28+
29+
- name: Seutp workspaces
30+
run: yarn compile
31+
32+
- name: Lint
33+
run: yarn format && yarn lint
34+
35+
- name: Test
36+
run: yarn coverage
37+
38+
- name: spot-contracts report coverage
39+
uses: coverallsapp/github-action@1.1.3
40+
with:
41+
github-token: ${{ secrets.GITHUB_TOKEN }}
42+
path-to-lcov: "./coverage/lcov.info"

.github/workflows/test.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
test:
11+
runs-on: ${{ matrix.os }}
12+
13+
strategy:
14+
matrix:
15+
node-version: [16.x]
16+
os: [ubuntu-latest]
17+
18+
steps:
19+
- name: Setup Repo
20+
uses: actions/checkout@v3
21+
22+
- name: Uses node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
27+
- name: Install all workspaces
28+
run: yarn install --immutable
29+
30+
- name: Seutp workspaces
31+
run: yarn compile
32+
33+
- name: Lint
34+
run: yarn format && yarn lint
35+
36+
- name: Test
37+
run: yarn test

.travis.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Ampleforth
22

3-
[![Build Status](https://travis-ci.com/ampleforth/ampleforth-contracts.svg?token=xxNsLhLrTiyG3pc78i5v&branch=master)](https://travis-ci.com/ampleforth/ampleforth-contracts)  [![Coverage Status](https://coveralls.io/repos/github/frgprotocol/uFragments/badge.svg?branch=master&t=GiWi8p)](https://coveralls.io/github/frgprotocol/uFragments?branch=master)
3+
[![Nightly](https://github.com/ampleforth/ampleforth-contracts/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/ampleforth/ampleforth-contracts/actions/workflows/nightly.yml)  [![Coverage Status](https://coveralls.io/repos/github/frgprotocol/uFragments/badge.svg?branch=master&t=GiWi8p)](https://coveralls.io/github/frgprotocol/uFragments?branch=master)
44

55
Ampleforth (code name uFragments) is a decentralized elastic supply protocol. It maintains a stable unit price by adjusting supply directly to and from wallet holders. You can read the [whitepaper](https://www.ampleforth.org/paper/) for the motivation and a complete description of the protocol.
66

0 commit comments

Comments
 (0)