Skip to content
Merged
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
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,15 @@ jobs:
- run: deno fmt --check .
- run: deno lint .
- run: deno check ./app.ts

test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: denolib/setup-deno@v2
with:
deno-version: v2.x
- run: deno test --allow-read --allow-write --allow-env
38 changes: 36 additions & 2 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions fixtures/.node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.16.0
1 change: 1 addition & 0 deletions fixtures/.ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.2.1
1 change: 1 addition & 0 deletions fixtures/.terraform-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.6.1
7 changes: 7 additions & 0 deletions fixtures/.yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ---
# dependencies:
# zlib.net: ^1.2
# env:
# FOO: BAR
# BAR: 1
# ---
6 changes: 6 additions & 0 deletions fixtures/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#---
# dependencies:
# zlib.net: ^1.2
# env:
# FOO: BAR
#---
13 changes: 13 additions & 0 deletions fixtures/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ---
# pkgx:
# dependencies:
# - zlib.net^1.2
# env:
# FOO: BAR
# ---

[package]
name = "pkgx example"
version = "0.0.1"
authors = ["mxcl"]
autobins = false
8 changes: 8 additions & 0 deletions fixtures/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# ---
# dependencies:
# zlib.net: ^1.2
# env:
# FOO: BAR
# ---
gem 'rails', '5.0.0'
gem 'sqlite3'
1 change: 1 addition & 0 deletions fixtures/action.yml/empty/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

19 changes: 19 additions & 0 deletions fixtures/action.yml/not-node/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Elixir Script
author: Jon Lauridsen
description: Run simple Elixir scripts
branding:
color: orange
icon: code
inputs:
script:
description: The script to run
required: true
debug:
description: Whether to tell the GitHub client to log details of its requests. true or false. Default is to run in debug mode when the GitHub Actions step debug logging is turned on.
default: ${{ runner.debug == '1' }}
outputs:
result:
description: The stringified return value of the script
runs:
using: docker
image: Dockerfile
9 changes: 9 additions & 0 deletions fixtures/action.yml/std/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
runs:
using: "node16"
main: "main.js"

pkgx:
dependencies:
zlib.net^1.2
env:
FOO: BAR
Empty file added fixtures/bun.lockb
Empty file.
64 changes: 64 additions & 0 deletions fixtures/cdk.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"app": "npx ts-node --prefer-ts-exts bin/cdk.ts",
"watch": {
"include": [
"**"
],
"exclude": [
"README.md",
"cdk*.json",
"**/*.d.ts",
"**/*.js",
"tsconfig.json",
"package*.json",
"yarn.lock",
"node_modules",
"test"
]
},
"context": {
"@aws-cdk/aws-lambda:recognizeLayerVersion": true,
"@aws-cdk/core:checkSecretUsage": true,
"@aws-cdk/core:target-partitions": [
"aws",
"aws-cn"
],
"@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true,
"@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true,
"@aws-cdk/aws-ecs:arnFormatIncludesClusterName": true,
"@aws-cdk/aws-iam:minimizePolicies": true,
"@aws-cdk/core:validateSnapshotRemovalPolicy": true,
"@aws-cdk/aws-codepipeline:crossAccountKeyAliasStackSafeResourceName": true,
"@aws-cdk/aws-s3:createDefaultLoggingPolicy": true,
"@aws-cdk/aws-sns-subscriptions:restrictSqsDescryption": true,
"@aws-cdk/aws-apigateway:disableCloudWatchRole": true,
"@aws-cdk/core:enablePartitionLiterals": true,
"@aws-cdk/aws-events:eventsTargetQueueSameAccount": true,
"@aws-cdk/aws-iam:standardizedServicePrincipals": true,
"@aws-cdk/aws-ecs:disableExplicitDeploymentControllerForCircuitBreaker": true,
"@aws-cdk/aws-iam:importedRoleStackSafeDefaultPolicyName": true,
"@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy": true,
"@aws-cdk/aws-route53-patters:useCertificate": true,
"@aws-cdk/customresources:installLatestAwsSdkDefault": false,
"@aws-cdk/aws-rds:databaseProxyUniqueResourceName": true,
"@aws-cdk/aws-codedeploy:removeAlarmsFromDeploymentGroup": true,
"@aws-cdk/aws-apigateway:authorizerChangeDeploymentLogicalId": true,
"@aws-cdk/aws-ec2:launchTemplateDefaultUserData": true,
"@aws-cdk/aws-secretsmanager:useAttachedSecretResourcePolicyForSecretTargetAttachments": true,
"@aws-cdk/aws-redshift:columnId": true,
"@aws-cdk/aws-stepfunctions-tasks:enableEmrServicePolicyV2": true,
"@aws-cdk/aws-ec2:restrictDefaultSecurityGroup": true,
"@aws-cdk/aws-apigateway:requestValidatorUniqueId": true,
"@aws-cdk/aws-kms:aliasNameRef": true,
"@aws-cdk/aws-autoscaling:generateLaunchTemplateInsteadOfLaunchConfig": true,
"@aws-cdk/core:includePrefixInUniqueNameGeneration": true,
"@aws-cdk/aws-efs:denyAnonymousAccess": true,
"@aws-cdk/aws-opensearchservice:enableOpensearchMultiAzWithStandby": true,
"@aws-cdk/aws-lambda-nodejs:useLatestRuntimeVersion": true,
"@aws-cdk/aws-efs:mountTargetOrderInsensitiveLogicalId": true,
"@aws-cdk/aws-rds:auroraClusterChangeScopeOfInstanceParameterGroupWithEachParameters": true,
"@aws-cdk/aws-appsync:useArnForSourceApiAssociationIdentifier": true,
"@aws-cdk/aws-rds:preventRenderingDeprecatedCredentials": true,
"@aws-cdk/aws-codepipeline-actions:useNewDefaultBranchForCodeCommitSource": true
}
}
3 changes: 3 additions & 0 deletions fixtures/deno.json/arr/deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"pkgx": ["zlib.net^1.2"]
}
10 changes: 10 additions & 0 deletions fixtures/deno.json/std/deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"pkgx": {
"dependencies": {
"zlib.net": "^1.2"
},
"env": {
"FOO": "BAR"
}
}
}
10 changes: 10 additions & 0 deletions fixtures/deno.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"pkgx": {
"dependencies": {
"zlib.net": "^1.2"
},
"env": {
"FOO": "BAR"
}
}
}
17 changes: 17 additions & 0 deletions fixtures/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// ---
// dependencies:
// zlib.net: ^1.2
// testing.org: 1.2.3
// env:
// FOO: BAR
// ---

module github.com/pkgxdev/go-mod-example

require (
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc // indirect
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf // indirect
github.com/gorilla/mux v1.6.2
github.com/sirupsen/logrus v1.2.0
gopkg.in/alecthomas/kingpin.v2 v2.2.6 // indirect
)
3 changes: 3 additions & 0 deletions fixtures/package.json/arr/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"pkgx": ["zlib.net^1.2", "deno@1.33"]
}
8 changes: 8 additions & 0 deletions fixtures/package.json/engines/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"engines": {
"node": "~16.16.1",
"npm": "~9.7.1",
"yarn": "~1.22.10",
"pnpm": "~7.33.7"
}
}
3 changes: 3 additions & 0 deletions fixtures/package.json/packageManager/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"packageManager": "pnpm@7.33.7+sha256.d1581d46ed10f54ff0cbdd94a2373b1f070202b0fbff29f27c2ce01460427043"
}
10 changes: 10 additions & 0 deletions fixtures/package.json/std/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"pkgx": {
"dependencies": {
"zlib.net": "^1.2"
},
"env": {
"FOO": "BAR"
}
}
}
3 changes: 3 additions & 0 deletions fixtures/package.json/str/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"pkgx": "zlib.net^1.2 python.org@latest"
}
8 changes: 8 additions & 0 deletions fixtures/package.json/volta/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"volta": {
"node": "16.16.1",
"npm": "9.7.1",
"yarn": "1.22.10",
"pnpm": "7.33.7"
}
}
7 changes: 7 additions & 0 deletions fixtures/pixi.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ---
# dependencies:
# zlib.net: ^1.2
# python.org: '@latest'
# env:
# FOO: BAR
# ---
5 changes: 5 additions & 0 deletions fixtures/pkgx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dependencies:
zlib.net: ^1.2
python.org: latest
env:
FOO: BAR
12 changes: 12 additions & 0 deletions fixtures/pyproject.toml/poetry-yaml-fm/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# pyproject. toml
# ---
# pkgx:
# python@3.10
# ---

[tool-poetry]
name = "magicaitrainer"
version = "0.1.0"
description =
authors = ["jlphilli"]
readme = "README. md"
13 changes: 13 additions & 0 deletions fixtures/pyproject.toml/poetry/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ---
# dependencies:
# zlib.net: ^1.2
# env:
# FOO: BAR
# ---

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool-poetry.dependencies]
python = "3.11.4"
9 changes: 9 additions & 0 deletions fixtures/pyproject.toml/std/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ---
# dependencies:
# zlib.net: ^1.2
# env:
# FOO: BAR
# ---

[project]
name = "pkgx example"
1 change: 1 addition & 0 deletions fixtures/python-version/broken/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broken
3 changes: 3 additions & 0 deletions fixtures/python-version/commented/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# hi

3.11
1 change: 1 addition & 0 deletions fixtures/python-version/std/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.10
9 changes: 9 additions & 0 deletions fixtures/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ---
# dependencies:
# zlib.net: ^1.2
# env:
# FOO: BAR
# ---
tensorflow==2.3.1
uvicorn==0.12.2
fastapi==0.63.0
Loading
Loading