Skip to content

Bump eslint-config-prettier from 8.5.0 to 9.1.0 #32

Bump eslint-config-prettier from 8.5.0 to 9.1.0

Bump eslint-config-prettier from 8.5.0 to 9.1.0 #32

Workflow file for this run

name: CI
on:
pull_request:
types: [ opened, synchronize, reopened ]
branches:
- main
push:
branches:
- main
jobs:
test-action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate hash
id: generate
uses: ./
with:
build_context: ./test/
extra_tree_objects: |
test/.dockerignore
test/Dockerfile
# Expected hash generated from command below
# git ls-tree -r --format='%(objectname) %(path)' --full-tree HEAD \
# test/a/b \
# test/context/file \
# test/filename \
# test/.dockerignore \
# test/Dockerfile | \
# git hash-object --stdin
- name: Check
run: |
echo "${{ toJson(steps.generate) }}"
if [ "${{ steps.generate.outputs.hash }}" != "6c867c528d4bf0844d5176f78f6abfee0adfff2b" ]; then
echo "::error::Invalid hash value"
exit 1
fi
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
- run: npm run lint
- run: npm test
# TODO: Coverage