Skip to content

Commit

Permalink
feat: GitHub Action for testing on push/PR
Browse files Browse the repository at this point in the history
  • Loading branch information
novusnota committed Sep 24, 2023
1 parent dd97e93 commit 0dc50bd
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# These are supported funding model platforms

github: [novusnota]
ko_fi: novusnota
# for crypto, check out DONATE.md
35 changes: 35 additions & 0 deletions .github/workflows/check_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: ✅ Check and test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-check-and-test
cancel-in-progress: true

jobs:
check-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
with:
sdk: stable

- name: Install dependencies
run: dart pub get

- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .

- name: Analyze project source
run: dart analyze --fatal-infos

- name: Run tests
run: dart test
3 changes: 2 additions & 1 deletion test/client/jsonrpc_test.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
@Skip('Can fail due to errors on the toncenter side, skipping for now.')
@TestOn('vm')

import 'dart:io' show File;
import 'package:tonutils/tonutils.dart' show InternalAddress, TonJsonRpc, TiInt;
import 'package:test/test.dart' show TestOn, group, test; // expect
import 'package:test/test.dart' show Skip, TestOn, group, test; // expect

void main() {
var apiKeyMainnet =
Expand Down

0 comments on commit 0dc50bd

Please sign in to comment.