chore(deps): update dependency typescript-eslint to v8.18.2 #705
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Node.js | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version-file: package.json | |
cache: npm | |
- name: Run npm ci | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Check diff | |
run: | | |
if ! git diff --no-patch --exit-code; then | |
echo Diff found 1>&2 | |
exit 1 | |
fi | |
lint: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Node.js | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version-file: package.json | |
cache: npm | |
- name: Run npm ci | |
run: npm ci | |
- name: Run ESLint | |
run: npm run lint | |
format: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Node.js | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version-file: package.json | |
cache: npm | |
- name: Run npm ci | |
run: npm ci | |
- name: Run Prettier format check | |
run: npm run format:check | |
test-node: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Node.js | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version-file: package.json | |
cache: npm | |
- name: Run npm ci | |
run: npm ci | |
- name: Test | |
run: npm test | |
test-action: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Run export-secrets | |
uses: ./ | |
with: | |
secrets: | | |
{ | |
"FOO": "foo", | |
"TF_VAR_FOO": "tf-var-foo", | |
"TF_TOKEN_EXAMPLE_COM": "tf-token-example-com" | |
} | |
downcase-tf-var: true | |
downcase-tf-token: true | |
- name: Check environment variables | |
run: | | |
FAILED='' | |
assert_env() { | |
local KEY="$1" | |
local EXPECTED="$2" | |
local ACTUAL="${!KEY}" | |
if [[ "$EXPECTED" = "$ACTUAL" ]]; then | |
echo "PASSED: $KEY" | |
else | |
echo "FAILED: $KEY" 1>&2 | |
echo " expected: $EXPECTED" 1>&2 | |
echo " actual: $ACTUAL" 1>&2 | |
FAILED='true' | |
fi | |
} | |
assert_env 'FOO' 'foo' | |
assert_env 'TF_VAR_FOO' '' | |
assert_env 'TF_VAR_foo' 'tf-var-foo' | |
assert_env 'TF_TOKEN_EXAMPLE_COM' '' | |
assert_env 'TF_TOKEN_example_com' 'tf-token-example-com' | |
if [[ -n "$FAILED" ]]; then | |
echo "Test failed" 1>&2 | |
exit 1 | |
fi |