From 1f06ac36d31fecd50acdec4ef7bfd5dc7346f187 Mon Sep 17 00:00:00 2001 From: "Paulo F. Oliveira" Date: Sat, 7 Jan 2023 19:51:47 +0000 Subject: [PATCH] Simulate input `github-token` to fix unit tests (#174) * Simulate input to fix unit tests --- .github/workflows/action.yml | 3 +++ __tests__/setup-beam.test.js | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 43a7dbe..360c812 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -8,6 +8,9 @@ on: pull_request: types: [opened, synchronize] +env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + jobs: check_integrity: name: Expected local npm actions diff --git a/__tests__/setup-beam.test.js b/__tests__/setup-beam.test.js index 4013f31..d96a4e4 100644 --- a/__tests__/setup-beam.test.js +++ b/__tests__/setup-beam.test.js @@ -3,6 +3,7 @@ simulateInput('elixir-version', '1.14.2') simulateInput('rebar3-version', '3.20') simulateInput('install-rebar', 'true') simulateInput('install-hex', 'true') +simulateInput('github-token', process.env.GITHUB_TOKEN) const assert = require('assert') const fs = require('fs')