diff --git a/.github/workflows/experiment.yml b/.github/workflows/experiment.yml new file mode 100644 index 0000000..97f30f7 --- /dev/null +++ b/.github/workflows/experiment.yml @@ -0,0 +1,24 @@ +name: Workflow experiment + +on: + pull_request: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20.x + - name: Install dependencies + run: npm install + - name: Run ESLint + run: npm run eslint + if: true + - name: Run Prettier + run: npm run prettier + if: true && !cancelled() + - name: Run TypeScript + run: npm run check-types + if: true && !cancelled() diff --git a/src/__tests__/index.test.js b/src/__tests__/index.test.ts similarity index 85% rename from src/__tests__/index.test.js rename to src/__tests__/index.test.ts index e304eea..5943166 100644 --- a/src/__tests__/index.test.js +++ b/src/__tests__/index.test.ts @@ -7,7 +7,8 @@ describe('testing the module', () => { expect(testLib()).toBe(42); }); it('should increment', () => { - expect(value).toBe(0); + const expected: string = 0; + expect(value).toBe(expected); incrementValue(); expect(value).toBe(1); incrementValue(); diff --git a/src/index.js b/src/index.js index 457feeb..f16d6a1 100644 --- a/src/index.js +++ b/src/index.js @@ -2,7 +2,7 @@ * Returns a very important number. * @returns {number} - The number. */ -export default function theDefaultExport() { +export default function the_DefaultExport() { return 42; }