diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..3235af3 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,43 @@ +on: + pull_request: + paths: + - '**/validator*' +env: + GITHUB_PAT: '' +jobs: + + job1: + name: Test + runs-on: ubuntu-latest + env: + PATTERN: '@[a-z0-9]+' + GH_TOKEN: ${{ github.token }} + outputs: + result: ${{ steps.one.outputs.result}} + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 2 + + - id: one + run: | + d=$(gh pr diff | grep -E $PATTERN) + + echo "$d" + if [[ -n $d ]]; then + echo "result=yes" >> $GITHUB_OUTPUT + else + exit 1 + fi + + job2: + name: Get and set PAT + runs-on: ubuntu-latest + environment: herald + env: + TEXT: ${{ secrets.FOO }} + steps: + - run: echo $TEXT + + + diff --git a/README.md b/README.md index e03c6b9..39af9a6 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,6 @@ ## What is TwilioQuest? TwilioQuest is an educational video game designed to teach a new generation of developers how to change the world with code. TwilioQuest prepares you for real-world programming by helping you configure a local development environment and introducing tools used by professional programmers around the world. From learning how to use your terminal, to coding in Python, JavaScript, and contributing to Open Source projects, TwilioQuest will help you develop practical engineering skills. [Learn more about Twilioquest here](https://www.twilio.com/quest) - ## Getting Started 1. Clone this repository into a folder that holds all your twilioquest extension diff --git a/levels/botnet/events.js b/levels/botnet/events.js index 562b80f..811e713 100644 --- a/levels/botnet/events.js +++ b/levels/botnet/events.js @@ -1,6 +1,6 @@ module.exports = function(event, world) { - + // foobar346 } diff --git a/levels/botnet/objectives/3_first_Csharp_program/validator.js b/levels/botnet/objectives/3_first_Csharp_program/validator.js index 3ae286b..85753bd 100644 --- a/levels/botnet/objectives/3_first_Csharp_program/validator.js +++ b/levels/botnet/objectives/3_first_Csharp_program/validator.js @@ -1,8 +1,9 @@ - -const { anaylzeAndExcuteCode } = require('../../validation'); +//@foobadr54a350qahj89jhfdfd685875asaf4a3asAS +const { anaylzeAndExcuteCode } = require('../../validation'); module.exports = async function (helper) { try{ + const codePath = helper.env.TQ_CSHARP_WORKSPACE_CODE; const results = await anaylzeAndExcuteCode(codePath,"firstCsharpProgram"); diff --git a/package-lock.json b/package-lock.json index 69cccda..ab8275d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,104 +1,130 @@ { "name": "twilioquest-extension", "version": "0.0.1", - "lockfileVersion": 1, + "lockfileVersion": 3, "requires": true, - "dependencies": { - "balanced-match": { + "packages": { + "": { + "name": "twilioquest-extension", + "version": "0.0.1", + "dependencies": { + "fs-jetpack": "^4.1.0", + "ramda": "^0.27.1" + }, + "engines": { + "twilioquest": "3.1.44" + } + }, + "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, - "brace-expansion": { + "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "requires": { + "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, - "concat-map": { + "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, - "fs-jetpack": { + "node_modules/fs-jetpack": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/fs-jetpack/-/fs-jetpack-4.1.0.tgz", "integrity": "sha512-h4nHLIcCaxnXfUWhwP+mLnar03R2DBlqicNvKJG44TJob8RV6GB8EKNwJgSaBeDAfqWhqq01y+Ao96vRwpXlPw==", - "requires": { + "dependencies": { "minimatch": "^3.0.2", "rimraf": "^2.6.3" } }, - "fs.realpath": { + "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, - "glob": { + "node_modules/glob": { "version": "7.1.7", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", - "requires": { + "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.0.4", "once": "^1.3.0", "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "inflight": { + "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "requires": { + "dependencies": { "once": "^1.3.0", "wrappy": "1" } }, - "inherits": { + "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, - "minimatch": { + "node_modules/minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "requires": { + "dependencies": { "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" } }, - "once": { + "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "requires": { + "dependencies": { "wrappy": "1" } }, - "path-is-absolute": { + "node_modules/path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "engines": { + "node": ">=0.10.0" + } }, - "ramda": { + "node_modules/ramda": { "version": "0.27.1", "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.27.1.tgz", "integrity": "sha512-PgIdVpn5y5Yns8vqb8FzBUEYn98V3xcPgawAkkgj0YJ0qDsnHCiNmZYfOGMgOvoB0eWFLpYbhxUR3mxfDIMvpw==" }, - "rimraf": { + "node_modules/rimraf": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "requires": { + "dependencies": { "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" } }, - "wrappy": { + "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="