Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
210 commits
Select commit Hold shift + click to select a range
a980b29
Moved character asset paths to a variable
sammyhori Apr 23, 2024
3813bd1
Merge pull request #1 from TheRealEmissions/unit-tests
sammyhori Apr 23, 2024
11406ad
updated jdk & stopped game from being fullscreen
Apr 24, 2024
9f9c923
Made the code look better
LMLiam Apr 25, 2024
dbcefae
camera now moves with player
LMLiam Apr 25, 2024
6b857ef
Cropped the indoor maps so no empty space
1ucycrabtree Apr 25, 2024
c333dc0
Merge pull request #2 from TheRealEmissions/fix-camera
LMLiam Apr 25, 2024
b950c3c
Merge remote-tracking branch 'origin/master'
1ucycrabtree Apr 25, 2024
0d88b2d
added new map and then modified the indoor maps to update collisions …
1ucycrabtree Apr 25, 2024
d53af4b
Merge pull request #3 from TheRealEmissions/edit-map
1ucycrabtree Apr 25, 2024
fb12c7f
Fixed Gradle to work from root dir
Apr 25, 2024
8478cdc
more gradle dependencies & ci for code quality & build testing
Apr 25, 2024
fbe7ae0
qodana recommendations
Apr 25, 2024
59b551e
cleanup
Apr 25, 2024
56eca41
sonarlint cleanup
Apr 25, 2024
d3f3fbb
build and deploy workflow (hopefully it works)
Apr 25, 2024
49c881c
chmod for deploy workflow
Apr 25, 2024
b51ce0e
deploy on master push
Apr 25, 2024
ae7e5a6
deploy on master push
Apr 25, 2024
6732b8b
deploy on master push
Apr 25, 2024
c271163
deploy on master push
Apr 25, 2024
1141ab7
final touches
Apr 25, 2024
383a04c
updated hdpi mode
Apr 25, 2024
6f0f49e
deploy
Apr 25, 2024
1ed4676
removed ignored files
Apr 25, 2024
91db840
removed unused imports
Apr 25, 2024
42e9246
moved screens
Apr 25, 2024
a2720ab
Updated README.md
sammyhori May 2, 2024
01f507a
added activities objects to maps and updated pngs for each map for ae…
1ucycrabtree May 2, 2024
c5bc726
Tests setup
sammyhori May 9, 2024
3996b6f
Added intial asset tests
sammyhori May 9, 2024
9285602
Added credit for testing to README.md
sammyhori May 9, 2024
3749f22
Updated .gitignore to include tests build directory
sammyhori May 9, 2024
2a7de4e
renamed folders and added tilesets to new map folder
1ucycrabtree May 9, 2024
53a45bc
Bump next in /website in the npm_and_yarn group across 1 directory
dependabot[bot] May 10, 2024
5090c76
Merge pull request #5 from TheRealEmissions/readme-patch-1
sammyhori May 12, 2024
333aa77
Moved character assets path (again) to a variable within the Player c…
sammyhori May 13, 2024
02f383b
Unit Tests for the GameStats class
sammyhori May 13, 2024
716037e
Merge pull request #7 from TheRealEmissions/unit-tests-2
Zr695 May 13, 2024
ef74fd1
Added unit tests for the AppPreferences class
sammyhori May 13, 2024
26ed2a9
merge
May 13, 2024
c657dab
moved screens
May 13, 2024
240d3e3
Merge pull request #6 from TheRealEmissions/edit-map
LMLiam May 13, 2024
b911417
Merge pull request #8 from TheRealEmissions/dependabot/npm_and_yarn/w…
LMLiam May 13, 2024
2aeac18
singleton ref to HeslingtonHustle
May 13, 2024
6933cf7
Changing AppPreferencesUnitTests.java to see if it changes GitHub Act…
sammyhori May 13, 2024
12ff0d1
clean
May 13, 2024
6695a45
Merge branch 'master' of https://github.com/TheRealEmissions/uoy-eng1-2
May 13, 2024
f7f826c
renamed screens on enum to match class name
May 13, 2024
52eddb2
Merge pull request #9 from TheRealEmissions/unit-tests-2
LMLiam May 13, 2024
233b752
Merge remote-tracking branch 'origin/master'
May 13, 2024
062090f
moved activity
May 13, 2024
bb2a9dc
renamed preferences + moved
May 13, 2024
78df159
fixed javadoc
May 13, 2024
8909470
renamed to NAME
May 13, 2024
1a171ed
getPrefs() -> getPreferences() - way more clear
May 13, 2024
a4b4b2a
getPrefs() -> getPreferences() - way more clear
May 13, 2024
94fef3b
final class
May 13, 2024
586c89b
NAME is now private
May 13, 2024
c8009da
moved music prefs to its own class
May 13, 2024
9d49c0f
added loading and play screens to Screens
May 13, 2024
ed0ea56
readme updated to reflect changes
May 13, 2024
cd99648
moved to screens package
May 13, 2024
bbbb288
moved to player package
May 13, 2024
7b4d33f
reflect prev changes
May 13, 2024
108873f
moved to player package
May 13, 2024
08be00a
removed useless javadoc
May 13, 2024
1979a3b
reflect changes and remove ref to HeslingtonHustle
May 13, 2024
b485f1a
remove useless javadoc
May 13, 2024
72f3952
reflect changes
May 13, 2024
02fe676
reflect changes
May 13, 2024
c2227dc
dispose of stage (prevent memory leaks!) in LoadingScreen
May 13, 2024
79d9f85
removed useless @since
May 13, 2024
452f8d7
no longer needed @since
May 13, 2024
49dbbb5
added skin assets
May 13, 2024
e6f3664
scale with screen resizing (menu screen)
May 13, 2024
6f763b7
default 1080p
May 14, 2024
72c6f2c
reorder sequence
May 14, 2024
b781ff9
image assets
May 14, 2024
b657300
main menu title
May 14, 2024
2ffb4ee
table rendering (should appear as larger, needs further testing, didn…
May 14, 2024
a53e357
table now renders nicely
LMLiam May 14, 2024
b41db69
removed unnecessary conversion
LMLiam May 14, 2024
e0b127c
disposal of assets
LMLiam May 14, 2024
2a9d70c
map loader & added all valid maps
LMLiam May 14, 2024
9ceec62
forgot to annotate
LMLiam May 14, 2024
17fa762
disposal
LMLiam May 14, 2024
e2ee520
map loaded to show on menu screen, but havent copied the logic yet im…
LMLiam May 14, 2024
3057c53
Added /game/test/build/ to .gitignore
sammyhori May 14, 2024
bacd88a
screen disposal + javadoc fix
May 14, 2024
1ed3020
fixed missing char on map str
May 14, 2024
8449edb
removed ref to HeslingtonHustle in MainScreen as its no longer necessary
May 14, 2024
52b3940
reduced visibility of constructor for MusicPreferences
May 14, 2024
fb4266a
javadoc fixes in Preferences
May 14, 2024
fc7d2ac
removed lombok import from SkinAssets
May 14, 2024
08d5bb8
depreciated -> deprecated
May 14, 2024
53e004f
fixed shading
May 14, 2024
9110e8d
player characters added to ImageAssets
May 14, 2024
fae42e9
sound preferences
LMLiam May 14, 2024
7ac9892
TableContents no longer static in MenuScreen
May 14, 2024
3614ef7
PreferencesScreen improvements to match MenuScreen
May 14, 2024
d45389a
transition descriptions for map changes
LMLiam May 14, 2024
97dc4f4
added directly .load() for MapLoader
LMLiam May 14, 2024
286f6ef
preferences sliders have smaller step size (so much smoother!)
LMLiam May 14, 2024
0692b0f
weird magic number
LMLiam May 14, 2024
de80582
added object layers for each transition
1ucycrabtree May 14, 2024
1e26151
Merge pull request #13 from TheRealEmissions/update-map-ids
LMLiam May 14, 2024
76df54b
Merge remote-tracking branch 'origin/master'
LMLiam May 14, 2024
edd0e43
char screen changes
LMLiam May 14, 2024
e65b80d
more adequate disposal
LMLiam May 14, 2024
eef0c5d
isLoaded is now public
LMLiam May 14, 2024
301dcf7
HeslingtonHustle no longer stores a ref to Preferences
LMLiam May 14, 2024
ab9c0e2
personal touch to character selection
LMLiam May 14, 2024
902311a
collision disabled temporarily & character screen now passes direct e…
LMLiam May 15, 2024
5d1203f
cleaned up class:
LMLiam May 15, 2024
ecbf226
pref screen now checks if game has started to send back to correct sc…
LMLiam May 15, 2024
34659aa
info now locked to screen instead of map#
LMLiam May 15, 2024
cc886c6
removed weird spacing
LMLiam May 15, 2024
3252d19
camera now clamped to boundaries of the map
LMLiam May 15, 2024
c87c8c7
trees render on top of players
LMLiam May 15, 2024
17c61b6
moved trees etc for collision fixes
1ucycrabtree May 15, 2024
199eb17
Merge pull request #14 from TheRealEmissions/fix-overlapping-trees
LMLiam May 15, 2024
8890c8a
added some activities to the world map, in a new object layer 'activi…
1ucycrabtree May 15, 2024
ef2cc81
Merge pull request #15 from TheRealEmissions/add-activities-to-main-map
LMLiam May 15, 2024
03b3bd9
sorted out collisions
1ucycrabtree May 15, 2024
13ff398
sorted visible layers
1ucycrabtree May 15, 2024
b603d16
Merge pull request #16 from TheRealEmissions/add-activities-to-main-map
LMLiam May 15, 2024
8090e7e
changed to str get instead of get int
LMLiam May 15, 2024
a7e154c
test of collisions
LMLiam May 15, 2024
e4919de
temp player spawn loc
LMLiam May 15, 2024
59d061b
sorted spawn points
1ucycrabtree May 15, 2024
97478e9
Merge pull request #17 from TheRealEmissions/add-activities-to-main-map
LMLiam May 15, 2024
d2ffa87
allowed nullable transition key
LMLiam May 15, 2024
67bcc23
removed redundant code
LMLiam May 15, 2024
7d531d0
removed redundant imports
LMLiam May 16, 2024
5a2a469
for some reason some layers arent tiled
LMLiam May 16, 2024
3320c80
utility class for game stats & moved player dir
LMLiam May 16, 2024
6b35cf7
simplified player collisions
LMLiam May 16, 2024
8b6eb62
pair class (so useful)
LMLiam May 16, 2024
2e8a286
map transitions now available & reduced visibility of colliding methods
LMLiam May 16, 2024
2f4fe25
defaults stored
LMLiam May 16, 2024
1c4439b
meh
LMLiam May 16, 2024
8af1ed9
fixed positioning for spawnpoints so it doesnt glitch
1ucycrabtree May 16, 2024
8180921
nicer looking code
LMLiam May 16, 2024
4d1a9b4
activity todo on E key
LMLiam May 16, 2024
68a60ab
updated collision positions of map8
1ucycrabtree May 16, 2024
7699bd5
activities enum temp
LMLiam May 16, 2024
62332e5
activity refactoring
LMLiam May 16, 2024
73e28ca
del game stats
LMLiam May 16, 2024
f79ed3a
dispose statistics
LMLiam May 16, 2024
4ecf256
activity layer for player
LMLiam May 16, 2024
10f5297
PlayerStatistic interface
LMLiam May 16, 2024
8a81033
refactor
LMLiam May 16, 2024
125e139
rewrite of statistics (much better now)
LMLiam May 16, 2024
9701bc2
unit test refactor
LMLiam May 16, 2024
fd9b164
adjusted activity types and resized each room map to be same size (22…
1ucycrabtree May 16, 2024
5fd53a1
changed activity variable names
1ucycrabtree May 16, 2024
5fa2e50
Merge pull request #18 from TheRealEmissions/fix-spawnpoints
LMLiam May 17, 2024
68569f6
added activities & commented out broken code for now
LMLiam May 18, 2024
80f1781
ActivityMapObject is back
LMLiam May 18, 2024
73d1788
more efficient ActivityMapObject
LMLiam May 18, 2024
0edca23
temp
LMLiam May 18, 2024
5e0a544
label rendering for activities
LMLiam May 18, 2024
64cd274
draw player hud
LMLiam May 18, 2024
d848c76
doing activities supported
LMLiam May 18, 2024
558a189
Statistics now render on screen
LMLiam May 18, 2024
7ae1ccc
fixed bug
LMLiam May 18, 2024
ecb5c15
days now advance
LMLiam May 18, 2024
edb492a
end screen now shows classification
LMLiam May 18, 2024
26d810d
time and day now prettier
LMLiam May 18, 2024
6823aaf
score calc
LMLiam May 18, 2024
cbe4edc
dif stat def vals
LMLiam May 18, 2024
48614ae
set progress bar min to 0 bc its not buggy anymore
LMLiam May 18, 2024
6a28d2d
rm useless var assignment
LMLiam May 18, 2024
18acbaa
hashmap -> map
LMLiam May 18, 2024
b28a0dd
player can ALWAYS sleep
LMLiam May 18, 2024
f5efa1d
fixed home map bug
LMLiam May 18, 2024
07a3ecf
Merge pull request #11 from TheRealEmissions/gitignore-update
LMLiam May 18, 2024
64cf757
explicit cast
LMLiam May 18, 2024
4fef00d
fixed object error that caused game to crash
1ucycrabtree May 18, 2024
92b5710
fixed object errors
1ucycrabtree May 18, 2024
df71fc8
leaderboard functionality, currently file cannot be found, need to lo…
1ucycrabtree May 18, 2024
f1f8dcc
achievements enum
LMLiam May 18, 2024
8ed86da
changed leaderboard format to json, all working, just need to test wh…
1ucycrabtree May 20, 2024
49ae82c
changed leaderboard format to json, all working, just need to test wh…
1ucycrabtree May 20, 2024
daccdfa
changed leaderboard format to json, all working, just need to test wh…
1ucycrabtree May 20, 2024
8d570a2
changed leaderboard format to json, all working, just need to test wh…
1ucycrabtree May 20, 2024
34f6954
changed leaderboard format to json, all working, just need to test wh…
1ucycrabtree May 20, 2024
0046d11
changed leaderboard format to json, all working, just need to test wh…
1ucycrabtree May 20, 2024
1840386
changed leaderboard format to json, all working, just need to test wh…
1ucycrabtree May 20, 2024
8bd9aaa
changed leaderboard format to json, all working, just need to test wh…
1ucycrabtree May 20, 2024
b78b09b
changed leaderboard format to json, all working, just need to test wh…
1ucycrabtree May 20, 2024
dc27865
implemented InstructionScreen
1ucycrabtree May 21, 2024
28aea20
separated EndScreen to separate screens, better
1ucycrabtree May 21, 2024
2c6df16
Merge pull request #19 from TheRealEmissions/fix-map-problem
LMLiam May 22, 2024
7bc1340
Merge pull request #20 from TheRealEmissions/leaderboard
LMLiam May 22, 2024
5ce06f7
Merge pull request #22 from TheRealEmissions/add-welcome-screen
LMLiam May 22, 2024
c90ea18
Create deploy.yml
1ucycrabtree May 22, 2024
6e94542
Create nextjs.yml
LMLiam May 22, 2024
06d61b9
new classes
LMLiam May 22, 2024
8bcde9c
Merge remote-tracking branch 'origin/master'
LMLiam May 22, 2024
00fa19e
Update nextjs.yml
1ucycrabtree May 22, 2024
1f16698
Merge pull request #23 from TheRealEmissions/lc2353-patch-1
LMLiam May 22, 2024
a748370
Merge pull request #24 from TheRealEmissions/lc2353-patch-2
LMLiam May 22, 2024
90af84e
added streaks enum to activities in tiled, not added well_rounded yet
1ucycrabtree May 23, 2024
1d95f15
added well_rounded
1ucycrabtree May 23, 2024
249b830
modified instructions slightly
1ucycrabtree May 23, 2024
cc7c6fa
descriptions
1ucycrabtree May 23, 2024
3196bcb
got rid of trailing whitespaces
1ucycrabtree May 23, 2024
64f99d5
fixed enum exception
1ucycrabtree May 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Deploy
on:
push:
branches:
- master
workflow_dispatch:

jobs:
build-jar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
- name: Setup Gradle
uses: gradle/gradle-build-action@v2.4.2
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Compile and build classes
run: ./gradlew classes
- name: Run code checks
run: ./gradlew check
- name: Run unit tests
run: ./gradlew --no-build-cache cleanTest test
- name: build jar
continue-on-error: true
run: ./gradlew dist
- name: Upload JAR
continue-on-error: true
uses: actions/upload-artifact@v3
with:
name: release
path: |
game/desktop/build/libs/desktop-1.0.jar
- name: Upload binaries to GitHub Release
continue-on-error: true
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: game/desktop/build/libs/*.jar
tag: pre-release
prerelease: true
overwrite: true
file_glob: true
body: |
## ${{ github.ref_name }} (${{ github.sha }})

${{ github.event.head_commit.message }}
93 changes: 93 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Sample workflow for building and deploying a Next.js site to GitHub Pages
#
# To get started with Next.js see: https://nextjs.org/docs/getting-started
#
name: Deploy Next.js site to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["new-website"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Detect package manager
id: detect-package-manager
run: |
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
echo "manager=yarn" >> $GITHUB_OUTPUT
echo "command=install" >> $GITHUB_OUTPUT
echo "runner=yarn" >> $GITHUB_OUTPUT
exit 0
elif [ -f "${{ github.workspace }}/package.json" ]; then
echo "manager=npm" >> $GITHUB_OUTPUT
echo "command=ci" >> $GITHUB_OUTPUT
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
exit 0
else
echo "Unable to determine package manager"
exit 1
fi
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Setup Pages
uses: actions/configure-pages@v5
with:
# Automatically inject basePath in your Next.js configuration file and disable
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
#
# You may remove this line if you want to manage the configuration yourself.
static_site_generator: next
- name: Restore cache
uses: actions/cache@v4
with:
path: |
.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./out

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
63 changes: 63 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Java CI with Gradle

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'

# Configure Gradle for optimal use in GiHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0

- name: Change wrapper permissions
run: chmod +x ./gradlew

- name: Build with Gradle Wrapper
run: ./gradlew build

# NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).
# If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version.
#
# - name: Setup Gradle
# uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
# with:
# gradle-version: '8.5'
#
# - name: Build with Gradle 8.5
# run: gradle build

dependency-submission:

runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'

# Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
# See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
93 changes: 93 additions & 0 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Sample workflow for building and deploying a Next.js site to GitHub Pages
#
# To get started with Next.js see: https://nextjs.org/docs/getting-started
#
name: Deploy Next.js site to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["new-website"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Detect package manager
id: detect-package-manager
run: |
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
echo "manager=yarn" >> $GITHUB_OUTPUT
echo "command=install" >> $GITHUB_OUTPUT
echo "runner=yarn" >> $GITHUB_OUTPUT
exit 0
elif [ -f "${{ github.workspace }}/package.json" ]; then
echo "manager=npm" >> $GITHUB_OUTPUT
echo "command=ci" >> $GITHUB_OUTPUT
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
exit 0
else
echo "Unable to determine package manager"
exit 1
fi
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Setup Pages
uses: actions/configure-pages@v5
with:
# Automatically inject basePath in your Next.js configuration file and disable
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
#
# You may remove this line if you want to manage the configuration yourself.
static_site_generator: next
- name: Restore cache
uses: actions/cache@v4
with:
path: |
.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./out

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
35 changes: 35 additions & 0 deletions .github/workflows/qodana_code_quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Qodana
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
- 'releases/*'
- '*'

jobs:
qodana:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v3
if: github.event_name != 'pull_request'
name: 'Qodana Scan'
with:
fetch-depth: 0 # a full history is required for pull request analysis
- uses: actions/checkout@v3
if: github.event_name == 'pull_request'
name: 'Qodana Scan PR'
with:
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
fetch-depth: 0 # a full history is required for pull request analysis
- name: 'Qodana Scan Action'
uses: JetBrains/qodana-action@main
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
with:
pr-mode: false
Loading