Skip to content

Commit 2d6cddf

Browse files
committed
Merge package:args into shared core repository
2 parents 5c91c4c + 315f7f9 commit 2d6cddf

40 files changed

+7280
-0
lines changed

pkgs/args/.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Dependabot configuration file.
2+
# See https://docs.github.com/en/code-security/dependabot/dependabot-version-updates
3+
version: 2
4+
5+
updates:
6+
- package-ecosystem: github-actions
7+
directory: /
8+
schedule:
9+
interval: monthly
10+
labels:
11+
- autosubmit
12+
groups:
13+
github-actions:
14+
patterns:
15+
- "*"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# A CI configuration to auto-publish pub packages.
2+
3+
name: Publish
4+
5+
on:
6+
pull_request:
7+
branches: [ main ]
8+
push:
9+
tags: [ 'v[0-9]+.[0-9]+.[0-9]+*' ]
10+
11+
jobs:
12+
publish:
13+
if: ${{ github.repository_owner == 'dart-lang' }}
14+
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Dart CI
2+
3+
on:
4+
# Run CI on pushes to the main branch, and on PRs against main.
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
branches: [ main ]
9+
schedule:
10+
- cron: "0 0 * * 0"
11+
env:
12+
PUB_ENVIRONMENT: bot.github
13+
14+
jobs:
15+
# Check code formatting and static analysis on a single OS (linux)
16+
# against Dart dev.
17+
analyze:
18+
runs-on: ubuntu-latest
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
sdk: [dev]
23+
steps:
24+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
25+
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
26+
with:
27+
sdk: ${{ matrix.sdk }}
28+
- id: install
29+
name: Install dependencies
30+
run: dart pub get
31+
- name: Check formatting
32+
if: always() && steps.install.outcome == 'success'
33+
run: dart format --output=none --set-exit-if-changed .
34+
- name: Analyze code
35+
run: dart analyze --fatal-infos
36+
if: always() && steps.install.outcome == 'success'
37+
38+
# Run tests on a matrix consisting of three dimensions:
39+
# 1. OS: ubuntu-latest, (macos-latest, windows-latest)
40+
# 2. release channel: dev, (stable)
41+
test:
42+
needs: analyze
43+
runs-on: ${{ matrix.os }}
44+
strategy:
45+
fail-fast: false
46+
matrix:
47+
os: [ubuntu-latest]
48+
sdk: ['3.3', dev]
49+
steps:
50+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
51+
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
52+
with:
53+
sdk: ${{ matrix.sdk }}
54+
- id: install
55+
name: Install dependencies
56+
run: dart pub get
57+
- name: Run VM tests
58+
run: dart test --platform vm
59+
if: always() && steps.install.outcome == 'success'
60+
- name: Run Chrome tests
61+
run: dart test --platform chrome
62+
if: always() && steps.install.outcome == 'success'

pkgs/args/.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Don’t commit the following directories created by pub.
2+
.buildlog
3+
.pub/
4+
.dart_tool/
5+
build/
6+
packages
7+
.packages
8+
9+
# Or the files created by dart2js.
10+
*.dart.js
11+
*.js_
12+
*.js.deps
13+
*.js.map
14+
15+
# Include when developing application packages.
16+
pubspec.lock

pkgs/args/.test_config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"test_package": true
3+
}

0 commit comments

Comments
 (0)